Learn R Programming

prada (version 1.48.0)

devDims: 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.

Value

width, height, pwidth and pheight. These are the width and height values in inches and pixels respectively.

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.

See Also

plotPlate

Examples

Run this code
devDims(width=10)

Run the code above in your browser using DataLab