generate_umart | R Documentation |
Generate umart
generate_umart( umap_df, opacity = 0.25, group_col = NULL, use_palette = "Spectral", bg_color = "#b31c12", use_geom = "geom_path" )
umap_df |
An object from run_umap |
opacity |
controls background opacity |
group_col |
Column to use to color UMAP result |
use_palette |
Specifies a palette to use for the coloring |
bg_color |
Specifies plot background color |
use_geom |
Species the kind of geom to use. Defaults to geom_path |
UMAP art (umart)
r_x <- generate_data(seed = 520, type ="norm", number = 50, mean = 233, sd = 0.5) r_y <- generate_data(seed = 520, type ="norm", number = 50, mean = 520, sd = 0.05) r_df <- data.frame(x = r_x, y = r_y, group=rep(paste0("grp_", 1:5), 10)) umap_df <- run_umap(r_df[,-3], neighbors = 20, seed = 520) generate_umart(umap_df, group_col = r_df$group)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.