| plot_pca | R Documentation |
Performs a PCA on the tracer data and displays a biplot with source group
ellipses. Averaged datasets (with Mean_/SD_ or
mean_/sd_ columns) are automatically expanded to individual
observations by sampling from a normal distribution before the PCA is
computed, so all formats are accepted.
plot_pca(data, components = c(1L, 2L), colors = NULL, seed = NULL)
PCAPlot(data, components = c(1L, 2L), colors = NULL, seed = NULL)
PCA_plot(data, components = c(1L, 2L), colors = NULL, seed = NULL)
data |
A data frame containing source and mixture data in the standard fingerprinting format (raw or averaged). |
components |
A numeric vector of length 2 indicating which principal
components to display. Default |
colors |
An optional character vector of colors, one per group. If
|
seed |
An integer value used to initialize the random number generator. |
A ggplot object (also printed to the active graphics device).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.