plot_binary_on_umap | R Documentation |
Plots a binary variable on UMAP
plot_binary_on_umap(
metadata_df,
binary_var,
grouping_strs = NA,
umap1 = "UMAP_1",
umap2 = "UMAP_2",
color_str = "red",
pt_size = 0.5,
pt_stroke = 0.1,
pt_alpha = 0.5,
x_pos = NA,
y_pos = NA
)
metadata_df |
data frame with umap coordinates and binary variable |
binary_var |
binary variable, must be TRUE/FALSE |
grouping_strs |
|
umap1 |
string denoting UMAP_1 (optional; default: UMAP_1) |
umap2 |
string denoting UMAP_2 (optional; default: UMAP_2) |
color_str |
string denoting the color of detected cells (default: red) |
pt_size |
size of points in geom_point (default: 0.5) |
pt_stroke |
stroke of points in geom_point (default: 0.1) |
pt_alpha |
transparency of points in geom_point (default: 0.5) |
x_pos |
x position of count text (default: NA, sets to xmax) |
y_pos |
y position of count text (default: NA, sets to ymax) |
a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.