pageLayoutRow: Generate row positions for a number of plot elements with a...

View source: R/pageLayout.R

pageLayoutRowR Documentation

Generate row positions for a number of plot elements with a specified height and space between them

Description

Generate row positions for a number of plot elements with a specified height and space between them

Usage

pageLayoutRow(y, height, space, n, default.units = "inches")

Arguments

y

A numeric or unit object specifying the starting row y-position.

height

A numeric or unit object specifying the height of rows.

space

A numeric or unit object specifying the space between rows.

n

An integer specifying the number of elements to generate row positions for.

default.units

A string indicating the default units to use if y, h, or s are only given as numerics. Default value is default.units = "inches".

Value

Returns a unit vector of page positions.

Examples

# Starting at 0.5 units, return a vector of positions for 3 objects that
# are 2 units in height with 0.1 units of space between them

pageLayoutRow(y = 0.5, height = 2, space = 0.1, n = 3, 
            default.units = "inches")


PhanstielLab/BentoBox documentation built on June 30, 2024, 12:50 p.m.