Learn R Programming

rliger (version 1.0.1)

plotClusterProportions: Plot cluster proportions by dataset

Description

Generates plot of clusters sized by the proportion of total cells

Usage

plotClusterProportions(object, return.plot = FALSE)

Value

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

Arguments

object

liger object. Should call quantileAlignSNF before calling.

return.plot

Return ggplot object (default FALSE)

Examples

Run this code
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)

Run the code above in your browser using DataLab