Determines the size of a grid graphics plot conditional on device dimensions.
Size is defined as physical width and height in inches
of the first encountered panel as rendered on a device with the
specified width and height. pdf() is used as the evaluation
device. 'First encountered panel' is resolved by evaluating the
output of a call to current.vpTree for the
first viewport name containing 'panel' or 'subpanel'. The latter
takes precedence if available, for intuitive handling of output from
splom.
Usage
# S3 method for default
plotsize(x, width, height,
digits = getOption("plotscale_plotsize_digits", 3),
pattern = c("subpanel\\b", "panel\\b"), index = 1, ...)