plot_donor_props {scITD}R Documentation

Plot donor celltype/subtype proportions against each factor

Description

Plot donor celltype/subtype proportions against each factor

Usage

plot_donor_props(
  donor_props,
  donor_scores,
  significance,
  ctype_mapping = NULL,
  stat_type = "adj_pval",
  n_col = 2
)

Arguments

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)

Value

A cowplot figure of ggplot objects for proportions of each cell type against donor factor scores for each factor.


[Package scITD version 1.0.4 Index]