plot_umap | R Documentation |
Plots a 2D UMAP with the aesthetics that I like
plot_umap(
.tbl,
x = UMAP_1,
y = UMAP_2,
color_str = "value",
pixels = c(512, 512),
pointsize = 0,
fix_coords = TRUE,
label = FALSE,
textsize = 3,
label_groups = NULL,
repel_min_segment_length = 0.1,
arrange_points = TRUE
)
.tbl |
a data table with umap cols |
x |
UMAP 1 |
y |
UMAP 2 |
pixels |
the pixels input to |
pointsize |
the pointsize input to |
fix_coords |
whether or not to use |
label |
bool specifying whether to label the color category |
textsize |
int specifying textsize; only applies if label=TRUE |
label_groups |
character vector specifying additional groups to label |
repel_min_segment_length |
min segment length to pass to |
arrange_points |
whether or not to arrange the points so the highest value ones are on top |
color |
the color to show |
ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.