Plot matrix of donor scores extracted from Tucker decomposition
plot_donor_matrix(
container,
meta_vars = NULL,
cluster_by_meta = NULL,
show_donor_ids = FALSE,
add_meta_associations = NULL,
show_var_explained = TRUE,
donors_sel = NULL,
h_w = NULL
)
The project container with a heatmap plot of donor scores in container$plots$donor_matrix.
environment Project container that stores sub-containers for each cell type as well as results and plots from all analyses
character Names of metadata variables to plot alongside the donor scores. Can include more than one variable. (default=NULL)
character One metadata variable to cluster the heatmap by. If NULL, donor clustering is done using donor scores. (default=NULL)
logical Set to TRUE to show donor id as row name on the heamap (default=FALSE)
character Adds meta data associations with each factor as top annotation. These should be generated first with plot_meta_associations(). Set to 'pval' if used 'pval' in plot_meta_associations(), otherwise set to 'rsq'. If NULL, no annotation is added. (default=NULL)
logical Set to TRUE to display the explained variance for each factor (default=TRUE)
character A vector of a subset of donors to include in the plot (default=NULL)
numeric Vector specifying height and width (defualt=NULL)
test_container <- plot_donor_matrix(test_container, show_donor_ids = TRUE)
Run the code above in your browser using DataLab