ggpLayerFrameByCoords | R Documentation |
Sets the limits on the x- and y-axis of a ggplot based on the coordinate range or the image range.
ggpLayerFrameByCoords(object = "object", opt = "coords")
ggpLayerFrameByImage(object = "object", opt = "coords")
object |
An object of class |
opt |
Specifies the function with which the limits are set. If
'scale' (the default), |
ggpLayer*()
-functions return lists of ggproto
objects
that can be added to ggplots via the +
operator. In most of the cases
they are supposed to be added to plots created with the plotSurface*()
family.
If 'scale', always adds ggplot2::coord_equal()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.