View source: R/deconvolution.R
prop_barplot | R Documentation |
Bar plot of cell type proportions across samples
prop_barplot(prop, sort = TRUE, interactive = FALSE)
prop |
a matrix or data.frame of cell proportion values with rows representing cell types, columns representing samples. |
sort |
a logical value indicating whether to sort the samples based on cell type with highest median cell proportion across samples. Default to TRUE. |
interactive |
a logical value indicating whether to generate interactive plot. Default to FALSE. |
a ggplot
object or plotly
object if interactive is set to TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.