zoom {plotscaper} | R Documentation |
Zoom into an area of a plot
Description
This function zooms into a rectangular area of the specified plot. The coordinates of the rectangular area can be specified with either percentages of the plotting region, absolute coordinates (pixels), or data coordinates.
Usage
zoom(x, id = NULL, coords = NULL, units = "pct")
Arguments
x |
A plotscaper scene or schema |
id |
A string id of the plot. See id |
coords |
The coordinates of a rectangle to
zoom into, in the following order: |
units |
The units with which to interpret the coordinates. Can be "pct" (percentages of the plotting region), "abs" (absolute screen coordinates, in pixels), or "data" (data coordinates; only works if both scales are continuous). |
Value
The scene or schema back
[Package plotscaper version 0.2.5 Index]