View source: R/get_prop_associations.R
plot_donor_props | R Documentation |
Plot donor celltype/subtype proportions against each factor
plot_donor_props(
donor_props,
donor_scores,
significance,
ctype_mapping = NULL,
stat_type = "adj_pval",
n_col = 2
)
donor_props |
data.frame Donor proportions as output from compute_donor_props() |
donor_scores |
data.frame Donor scores from tucker results |
significance |
numeric F-Statistics as output from compute_associations() |
ctype_mapping |
character The cell types corresponding with columns of donor_props (default=NULL) |
stat_type |
character Either "fstat" to get F-Statistics, "adj_rsq" to get adjusted R-squared values, or "adj_pval" to get adjusted pvalues (default='adj_pval') |
n_col |
numeric The number of columns to organize the plots into (default=2) |
A cowplot figure of ggplot objects for proportions of each cell type against donor factor scores for each factor.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.