devDims {prada}R Documentation

Device Dimensions for plate plots

Description

Calculate device dimensions for plate plots

Usage

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

devDims(width=10)

[Package prada version 1.14.0 Index]