Description Usage Arguments Value Examples
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
1 | plotProportions(..., pnames = NULL, point_size = 2, line_size = 2)
|
... |
matricies, data frames, NMF objects of estimated proportions or paths to file |
pnames |
experiment titles |
ggplot object
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'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.