Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

xbox

Plot a box (with x).


Description

xbox plots a box with a cross (x) in its top-right corner.

Usage

xbox(col = Seeblau, dim = c(1, 1))

Arguments

col

The color to fill the box with (i.e., its background color). Default: col = unlist(seeblau).

dim

The x- and y-dimensions of the box. Default: dim = c(1, 1) (i.e., a unit square).

Details

The cross (x) appears rectangular when viewing the plot at the correct aspect ratio (as defined by dim).

See Also

post to add text to an xbox; slide to plot a new slide (or frame).

Other plot functions: slide(), theme_grau(), theme_unikn()

Examples

xbox()  # default box

# Options:
xbox(col = Bordeaux)
xbox(dim = c(2, 1)) # 2:1 dimension (wider than high)

unikn

Graphical Elements of the University of Konstanz's Corporate Design

v0.4.0
CC BY-SA 4.0
Authors
Hansjoerg Neth [aut, cre] (<https://orcid.org/0000-0001-5427-3141>), Nico Gradwohl [aut] (<https://orcid.org/0000-0002-8703-905X>)
Initial release
2021-03-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.