View source: R/cluster_heterogeneity.R
cluster_heterogeneity | R Documentation |
cluster heterogeneity across the sample
cluster_heterogeneity(cnr, by = NULL, cluster_column = NULL)
cnr |
a cnr bundle |
by |
a categorical variable used to stratify the cell population. If NULL i.e. no stratification, the representation will be done overall |
cluster_column |
column to use as cluster |
A 'data.frame' with a simple cluster heterogeneity summary. Table provides total counts of each clone (optionally be stratified by a group), clone representation, overal frequency per clone (also computed for stratified data), and Shannon's Diversity index for stratified data.
data(cnr) cnr <- phyloCNR(cnr) cnr <- setBrayClusters(cnr, tree.height = 0.065) cnr <- cluster_heterogeneity(cnr, cluster_column = "BrayC")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.