Plot the differential Abundance

plotClusterAbundance(inSCE, cluster, variable)

Arguments

inSCE

A SingleCellExperiment object.

cluster

A single character, specifying the name to store the cluster label in colData.

variable

A single character, specifying the name to store the phenotype labels in colData.

Value

A list with 4 ggplot objects.

Details

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.

Examples

data("mouseBrainSubsetSCE", package = "singleCellTK") plotClusterAbundance(inSCE = mouseBrainSubsetSCE, cluster = "tissue", variable = "level1class")
#> [[1]]
#> #> [[2]]
#> #> [[3]]
#> #> [[4]]
#>