View source: R/barplot.cell.pops.R
barplot.cell.pops | R Documentation |
This function calculates cluster proportions (or raw counts) for each identified cluster and plot them on a stacked barplot.
## S3 method for class 'cell.pops'
barplot(
fcs.SCE,
assay.i = "normalized",
cell.clusters,
plot = T,
count.by,
facet.by = NULL,
return.mode,
colors = NULL
)
fcs.SCE |
A |
assay.i |
Name of matrix stored in the |
cell.clusters |
Name of column containing clusters identified through |
plot |
Logical indicating whether plotting stacked barplot. Default = |
count.by |
Variable name (from |
facet.by |
Variable name (from |
return.mode |
String for specifying if final resuls should be proportions ("percentage") or raw counts ("counts"). Default = |
colors |
Vector with colors for plotting. Default = |
## Not run:
prop_table <- barplot.cell.pops(fcs.SCE = fcs, cell.clusters = "SOM_named",
count.by = "sample_id", facet.by = "condition",
return.mode = "percentage")
counts_table <- barplot.cell.pops(fcs.SCE = fcs, cell.clusters = "SOM_named",
count.by = "condition", return.mode = "counts")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.