ggpLayerScreeningDirectionSAS | R Documentation |
Visualizes the screenining direction of an SAS set up on top of a surface plots. See examples.
ggpLayerScreeningDirectionSAS(
object,
ids,
distance = "dte",
line_alpha = 1,
line_color = "black",
line_size = 1,
line_type = "solid",
verbose = NULL,
...
)
object |
An object of class |
ids |
Character vector. Specifies the IDs of the spatial annotations of interest. |
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. Affects size of the main lines of the plot. |
line_type |
Character. The line type. One of 'blank', 'solid', 'dashed', 'dotted', 'dotdash', 'longdash' and 'twodash'. |
verbose |
Logical. If (Warning messages will always be printed.) |
... |
Used to absorb deprecated arguments or functions. |
In contrast to ggpLayerExprEstimates()
, which visualizes
the precise positions of the expression estimates, ggpLayerScreeningDiretionSAS()
visualizes
only the concept, the idea, of the screening direction. This is particularly useful, if the screening
set up includes multiple annotations in one tissue section, where ggpLayerExprEstimates()
fails
to visualize the combined expression estimates.
library(SPATA2)
data("example_data")
object <- example_data$object_UKF313T_diet
ids <- getSpatAnnIds(object, tags = c("necrotic", "compr"))
plotImage(object) +
ggpLayerSpatAnnOutline(object, ids = ids, fill = "lightgrey") +
ggpLayerScreeningDirectionSAS(object, ids = ids, line_size = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.