ggPCAplot | R Documentation |
Creates a PCA plot from a microarray object with 'exprs()' such as an ExpressionSet
ggPCAplot(object, pc = c(1, 2), groupvar, scale = TRUE, interactive = TRUE)
object |
Microarray data from a ExpressionSet or GeneFeatureSet |
pc |
A vector of length two indicanting the principal components to plot on each axis |
groupvar |
A numeric indicating the column to use as grouping factor or a character indicating it's name |
scale |
A boolan indicating if the PCA will be scaled, (the default is TRUE). |
interactive |
A boolean indicating if the plot will be converted to an interactive 'ggplotly()' |
Returns a ggplot object or a ggplotly
Jordi Rofes Herrera
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.