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

slide

Plot a slide (or frame).


Description

slide plots an empty slide (or frame) as a colored rectangle.

Usage

slide(col = NA, dim = c(4/3, 1), border = grey(0.33, 1), lwd = 1.5)

Arguments

col

The color to fill the slide with (i.e., its background color). Default: col = NA (i.e., system default for transparency).

dim

The x- and y-dimensions of the slide. Default: dim = c(4/3, 1) (i.e., unit height, 4/3 wider than high).

border

The color of the slide's border. Setting border = NA hides border. Default: border = grey(.33, 1).

lwd

The line width of the slide's border. Setting lwd = 0 or lwd = NA removes border. Default: lwd = 1.5.

See Also

heading, line, or mark to add text to a slide; xbox to plot a box.

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

Examples

slide()  # default slide (or frame)
slide(lwd = NA)  # borderless slide

# Dimensions: 
slide(dim = c(18, 9))  # larger and 2:1 dimensions

# Formatting:
slide(col = pal_seeblau[[1]], border = pal_seeblau[[5]], lwd = 2)

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.