plot_norm_prop: plot_norm_prop

plot_norm_propR Documentation

plot_norm_prop

Description

Calculate the proportion and normalized proportion of entries represented within a given group

Usage

plot_norm_prop(prop_df, var, norm_var, col_position = "stack")

Arguments

prop_df

proportion data frame, usually the output of calculate_proportion()

var

grouping var (for Seurat metadata, usually clustering)

norm_var

var to normalize against (for Seurat metadata, usually orig.ident)

col_position

position variable in geom_col (default: "stack"). Use ?geom_col to see other options

Details

Example: metadata %>% calculate_proportion(clustering, orig.ident) %>% plot_prop(clustering, orig.ident)

Value

tibble with proportion and normalized proportion


amyh25/Rsc documentation built on Jan. 29, 2024, 7:22 a.m.