plotPCcorrs | R Documentation |
Plots the significance of the (cor)relation of each covariate vs a principal component
plotPCcorrs(pccorrs, pc = 1, logp = TRUE)
pccorrs |
A |
pc |
An integer number, corresponding to the principal component of interest |
logp |
Logical, defaults to |
A base plot object
library(DESeq2)
dds <- makeExampleDESeqDataSet_multifac(betaSD_condition = 3, betaSD_tissue = 1)
rlt <- rlogTransformation(dds)
pcaobj <- prcomp(t(assay(rlt)))
res <- correlatePCs(pcaobj, colData(dds))
plotPCcorrs(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.