View source: R/plotPCAscores.R
plotPCAscores | R Documentation |
Creates a PCA score plot using ggplot.
plotPCAscores(df, prc)
df |
Dataframe with the principal components to be plotted in the first two columns, and a group column to color by. |
prc |
A vector with the percentage the principal components contribute, to be used for x and y axis titles. |
A ggplot PCA score plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.