PCAPlot | R Documentation |
Principal Component Analysis of samples based on the 500 most variant features on VST- or rlog-counts (if use of DESeq2)
PCAPlot( counts.trans, group, n = min(500, nrow(counts.trans)), col = c("lightblue", "orange", "MediumVioletRed", "SpringGreen"), outfile = TRUE, ggplot_theme = theme_gray() )
counts.trans |
a matrix a transformed counts (VST- or rlog-counts) |
group |
factor vector of the condition from which each sample belongs |
n |
number of features to keep among the most variant |
col |
colors to use (one per biological condition) |
outfile |
TRUE to export the figure in a png file |
ggplot_theme |
ggplot2 theme function ( |
A file named PCA.png in the figures directory with a pairwise plot of the three first principal components
Marie-Agnes Dillies and Hugo Varet
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.