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
)
A cowplot figure of ggplot objects for proportions of each cell type against donor factor scores for each factor.
data.frame Donor proportions as output from compute_donor_props()
data.frame Donor scores from tucker results
numeric F-Statistics as output from compute_associations()
character The cell types corresponding with columns of donor_props (default=NULL)
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')
numeric The number of columns to organize the plots into (default=2)