ggpLayerExprEstimatesSAS | R Documentation |
Visualizes the distances at which expression of a numeric feature is estimated with a certain SAS set up. Plotted as concentric circles around the annotation
ggpLayerExprEstimatesSAS(
object,
ids,
distance = "dte",
resolution = recSgsRes(object),
core = FALSE,
alpha_core = 0,
fill_core = NA,
line_alpha = 1,
line_color = "black",
line_size = (line_size_core * 0.75),
line_size_core = 1,
incl_edge = TRUE,
method = "normal",
verbose = NULL,
...
)
object |
An object of class |
ids |
Character vector. Specifies the IDs of the spatial annotations of interest. |
distance |
|
resolution |
Distance measure. The resolution
with which the expression gradient is inferred. Defaults are platform specific.
See more in detail section of |
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_size_core |
Numeric. The size with which to display the core outline of the spatial annotation. |
incl_edge |
Logical. 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)
data("example_data")
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") +
ggpLayerExprEstimatesSAS(object, ids = "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.