Plot the differential Abundance
plotClusterAbundance(inSCE, cluster, variable, combinePlot = c("all", "none"))A SingleCellExperiment
object.
A single character, specifying the name to store the
cluster label in colData.
A single character, specifying the name to store the
phenotype labels in colData.
Must be either "all" or "none". "all" will combine all
plots into a single ggplot object. Default
"all".
When combinePlot = "none", a list with 4
ggplot objects; when combinePlot = "all", a
single ggplot object with for subplots.
This function will visualize the differential abundance in two given variables, by making bar plots that presents the cell counting and fraction in different cases.
data("mouseBrainSubsetSCE", package = "singleCellTK")
plotClusterAbundance(inSCE = mouseBrainSubsetSCE,
cluster = "tissue",
variable = "level1class")