ggpLayerFrameByCoords.RdSets the limits on the x- and y-axis of a surface plot based on the coordinate range of the objects observations or the image.
Soft deprecated in favor of the arguments xrange and yrange in plotSurface().
ggpLayerFrameByCoords(object = "object", ...)
ggpLayerFrameByImage(object = "object", ...)An object of class SPATA2 or, in case of S4 generics,
objects of classes for which a method has been defined.
Used to absorb deprecated arguments or functions.
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.
library(SPATA2)
library(patchwork)
data("example_data")
object <- loadExampleObject("UKF275T")
plotImage(object) + plotSurface(object)
(plotImage(object) + ggpLayerFrameByCoords(object)) + plotSurface(object)