ggpLayerFrameByCoords: Set plot limits

View source: R/g.R

ggpLayerFrameByCoordsR Documentation

Set plot limits

Description

Sets 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().

Usage

ggpLayerFrameByCoords(object = "object", ...)

ggpLayerFrameByImage(object = "object", ...)

Arguments

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.

Value

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.

Examples


library(SPATA2)
library(patchwork)

data("example_data")

object <- loadExampleObject("UKF275T")

plotImage(object) + plotSurface(object)

(plotImage(object) + ggpLayerFrameByCoords(object)) + plotSurface(object)



theMILOlab/SPATA2 documentation built on Feb. 8, 2025, 11:41 p.m.