ggpLayerHorizonSAS | R Documentation |
Visualizes the border between screened tissue (environment) and everything beyond that is not included in the screening (periphery).
ggpLayerHorizonSAS(
object,
id,
distance = distToEdge(object, id),
line_alpha = 0.9,
line_color = "black",
line_size = 1.5,
line_type = "solid",
incl_edge = TRUE,
incr_vert = FALSE,
verbose = NULL,
...
)
object |
An object of class |
distance |
|
line_alpha |
Numeric. Affects alpha of main lines of the plot. |
line_color |
Character. Affects color of the main lines of the plot. |
line_size |
Numeric. The size with which to display lines of the expression estimates. |
line_type |
Character. The line type. One of 'blank', 'solid', 'dashed', 'dotted', 'dotdash', 'longdash' and 'twodash'. |
incl_edge |
Logical. If |
incr_vert |
Logical value. If |
verbose |
Logical. If (Warning messages will always be printed.) |
... |
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(tidyverse)
object <- loadExampleObject("UKF275T")
object <-
createNumericAnnotations(
object = object,
variable = "HM_HYPOXIA",
threshold = "kmeans_high",
id = "hypoxia_ann",
force1 = TRUE
)
plotSurface(object, color_by = "HM_HYPOXIA", outline = T, pt_clrsp = "Reds 3") +
ggpLayerHorizonSAS(object, id = "hypoxia_ann", distance = "3mm") +
ggpLayerScaleBarSI(object, sb_pos = c("3mm", "2mm"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.