plotClusterProportions: Plot cluster proportions by dataset

View source: R/rliger.R

plotClusterProportionsR Documentation

Plot cluster proportions by dataset

Description

Generates plot of clusters sized by the proportion of total cells

Usage

plotClusterProportions(object, return.plot = FALSE)

Arguments

object

liger object. Should call quantileAlignSNF before calling.

return.plot

Return ggplot object (default FALSE)

Value

print plot to console (return.plot = FALSE); ggplot object (return.plot = TRUE) list of ggplot objects.

Examples

ligerex <- createLiger(list(ctrl = ctrl, stim = stim))
ligerex <- normalize(ligerex)
ligerex <- selectGenes(ligerex)
ligerex <- scaleNotCenter(ligerex)
ligerex <- optimizeALS(ligerex, k = 5, max.iter = 2)
ligerex <- quantile_norm(ligerex)
ligerex <- louvainCluster(ligerex)
plotClusterProportions(ligerex)

rliger documentation built on Nov. 9, 2023, 1:07 a.m.