Description Usage Arguments Value Note Author(s) Examples
This plot helps to check for batch effects and the like.
1 |
x |
a SummarizedExperiment, with data in |
intgroup |
interesting groups: a character vector of names in |
ntop |
number of top genes to use for principal components, selected by highest row variance |
returnData |
should the function only return the data.frame of PC1 and PC2 with intgroup covariates for custom plotting (default is FALSE) |
An object created by ggplot
, which can be assigned and further customized.
See the vignette for an example of variance stabilization and PCA plots. Note that the source code of plotPCA is very simple and commented. Users should find it easy to customize this function.
Wolfgang Huber
1 2 3 | dds <- makeExampleDESeqDataSet(betaSD=1)
rld <- rlog(dds)
plotPCA(rld)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.