unikn (version 0.1.0)

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: xbox

Examples

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataCamp Workspace