plot_norm_prop | R Documentation |
Calculate the proportion and normalized proportion of entries represented within a given group
plot_norm_prop(prop_df, var, norm_var, col_position = "stack")
prop_df |
proportion data frame, usually the output of |
var |
grouping var (for Seurat metadata, usually |
norm_var |
var to normalize against (for Seurat metadata, usually |
col_position |
position variable in geom_col (default: "stack"). Use ?geom_col to see other options |
Example: metadata %>% calculate_proportion(clustering, orig.ident) %>% plot_prop(clustering, orig.ident)
tibble with proportion and normalized proportion
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.