devDims: Device Dimensions for plate plots

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/plotPlate.R

Description

Calculate device dimensions for plate plots

Usage

1
devDims(width, height, ncol=12, nrow=8, res=72)

Arguments

width

Device width in inches.

height

Device width in inches.

ncol

Number of columns for plate plot.

nrow

Number of rows for plate plot.

res

The resolution of the graphic device used for plotting.

Details

The function computes the device dimensions needed to create plate plots that fit perfectly in the device. This is necessary to retain the aspect ratio of the plots.

One of width or height need to be specified, the missing value will be computed.

Value

A list with items width, height, pwidth and pheight. These are the width and height values in inches and pixels respectively.

Author(s)

Florian Hahne

See Also

plotPlate

Examples

1

prada documentation built on April 28, 2020, 7:52 p.m.