getRange {precisePlacement} | R Documentation |
Determine the Width and Height of a Plot
Description
Determine the Width and Height of a Plot
Usage
getRange(region, units)
Arguments
region |
The region of the plot to use for defining the boundaries. Must be one of "device", "figure", "plot", or "data". |
units |
Character string giving the units in which to define the range. Must be one of "in", "px", "data", or "lines". |
Value
Numeric vector of length two giving the range of the plotting region, in the order of x-axis, y-axis.
Author(s)
Jasper Watson
Examples
## Not run:
plot(1:10)
print(getRange('data', 'in'))
print(getRange('plot', 'px'))
print(getRange('figure', 'data'))
print(getRange('device', 'lines'))
## End(Not run)
[Package precisePlacement version 0.1.0 Index]