View source: R/dimred_labels.R
dimred_labels_add | R Documentation |
Sets a new color scale for the added annotation and sets up default aesthetics
dimred_labels_add(
labels,
colors = NULL,
label_by = 1,
color_by = 1,
dim1 = 2,
dim2 = 3,
seed = 112,
label.size = NA,
fontface = "bold",
label.padding = unit(0.01, units = "npc"),
na.rm = TRUE,
fill = alpha(c("white"), 0.75),
...
)
labels |
data.frame of labels and their positions (i.e. created by scutility::seurat_dimred_cluster_labels) |
colors |
named vector of colors for each label |
label_by |
name or index of the column in labels that should be used for labelling |
color_by |
name or index of the column in labels that should be used for coloring |
dim1 |
name or index of the column in labels that should be used for x |
dim2 |
name or index of the column in labels that should be used for y |
... |
Passed on to ggrepel::geom_label_repel |
list of ggplot2 functions to be added to an existing plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.