ggpLayerSpatAnnPointer | R Documentation |
Adds segments and, if desired, labels to the surface plot that point towards and highlight the position of spatial annotations.
ggpLayerSpatAnnPointer(
object,
ids = NULL,
tags = NULL,
test = "any",
color_by = NULL,
ptr_angles = 45,
ptr_labels = NULL,
ptr_lengths = "250um",
ptr_alpha = 0.9,
ptr_arrow = NULL,
ptr_color = "black",
ptr_size = 1,
text_alpha = 0.9,
text_color = "black",
text_dist = 0,
text_nudge_x = 0,
text_nudge_y = 0,
text_size = 4,
point_at = "center",
seed = NULL,
clrp = NULL,
clrp_adjust = NULL
)
object |
An object of class |
tags |
Character vector or |
test |
Character value. One of c('any'. 'all', 'identical', 'not_identical', 'none').
Specifies how input for |
color_by |
Character value or |
ptr_angles , ptr_lengths |
Numeric value of length 1 or of length equal to the number
of spatial annotations. Specifies the angle from which the segments points
towards the spatial annotation as well as their length. |
ptr_labels |
Specifies if and how the pointers are labeled. If |
ptr_alpha |
Numeric value. Specifies the transparency of the pointers. |
ptr_arrow |
|
ptr_color |
Character value. Specifies the color of the pointers if
|
ptr_size |
Numeric value. Specifies the size (thickness) of the pointers. |
text_dist |
Distance measure. Specifies the distance from the text to the pointer. |
point_at |
Character value. If 'center', the pointer is directed at the center of the spatial annotation. If 'border', the pointer points at a random point of the spatial annotation border - recommended if the spatial annotation is big. |
seed |
Numeric value or |
clrp |
Character value. Specifies the color palette to be used to represent
groups of discrete variables. Run |
clrp_adjust |
Named character vector or NULL. If character, it adjusts the color palette that is used to represent the groups. Names of the input vector must refer to the group and the respective named element denotes the color with which to represent the group. |
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.
The vignette on distance measures in SPATA2 has been replaced. Click
here
to read it.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.