Description Usage Arguments Value Examples
Produces a scree plot for investigating the proportion of explained variance, or alternatively the cumulative value
1 |
obj |
A |
type |
Display absolute proportions or cumulative proportion. Possible values: "pev" or "cev" |
pc_nr |
How many principal components to display max |
title |
Title of the plot |
An object created by ggplot
, which can be assigned and further customized.
1 2 3 4 5 | dds <- makeExampleDESeqDataSet_multifac(betaSD_condition = 3, betaSD_tissue = 1)
rlt <- DESeq2::rlogTransformation(dds)
pcaobj <- prcomp(t(SummarizedExperiment::assay(rlt)))
pcascree(pcaobj, type = "pev")
pcascree(pcaobj, type = "cev", title = "Cumulative explained proportion of variance - Test dataset")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.