ggpLayerCaptureArea | R Documentation |
Adds the capture area as a rectangular and/or crops the frame of the plot accordingly.
ggpLayerCaptureArea(
object,
opt = c("outline"),
line_clr = "black",
line_type = "solid",
line_size = 1,
expand_x = ggplot2::waiver(),
expand_y = ggplot2::waiver(),
img_name = activeImage(object)
)
object |
An object of class |
opt |
Combination of 'rect' and/or 'crop'. |
line_type |
Character. The line type. One of 'blank', 'solid', 'dashed', 'dotted', 'dotdash', 'longdash' and 'twodash'. |
line_size |
Numeric. Affects size of the main lines of the plot. |
expand_x , expand_y |
Given to |
img_name |
Character value. The name of the image of interest.
If |
List of ggpLayer outputs.
getCaptureArea()
library(SPATA2)
data("example_data")
object <- loadExampleObject("UKF275T")
plotImage(object) +
ggpLayerCaptureArea(object, opt = "outline")
plotImage(object) +
ggpLayerCaptureArea(object, opt = "crop")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.