plotProportions: Draw a plot of estimated proportions

Description Usage Arguments Value Examples

Description

Draws a plot of estimated proprotions If ggplot2 and reshape2 are installed will use them and return ggplot object Otherwise will use standart R functions

Usage

1
plotProportions(..., pnames = NULL, point_size = 2, line_size = 2)

Arguments

...

matricies, data frames, NMF objects of estimated proportions or paths to file

pnames

experiment titles

Value

ggplot object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
set.seed(31)
data('datasetLiverBrainLung')
mixed <- datasetLiverBrainLung[, 10:42]
preprocessed <- preprocessDataset(mixed, k=5) # 5 clusters
accuracy <- clusdecAccuracy(preprocessed, 3) # assuming 3 cell types
results <- chooseBest(preprocessed, accuracy) # choose best combination of clusters as putative sigantures

plotProportions(results$H) # plotting proportions

data('proportionsLiverBrainLung') # or we can compare with actual mixed proportions
mixedProportions <- proportionsLiverBrainLung[, 10:42]
plotProportions(results$H, mixedProportions, pnames=c('ClusDec estimated', 'Actual'))

ctlab/ClusDec documentation built on May 14, 2019, 12:29 p.m.