Description Usage Arguments Details Value Author(s) Examples
Creates a PCA plot
1 2 3 4 5 6 7 8 9 |
data |
PLINK pca or EIGENSTRAT smartpca output, (or any tab-delimited file or data.frame with the same format as PLINK pca or EIGENSTRAT smartpca output) |
xComponent |
A character vector indicating the principal component value to use for the x-axis. Default is "PC1" |
yComponent |
A character vector indicating the principal component value to use for the x-axis. Default is "PC2" |
legendPos |
A character vector indicating the legend position. Default is "right". |
soft |
A character vector indicating the software output format. Default is "PLINK". If you have a tab-delimited file or data.frame with the same format as EIGENSTRAT output, use "EIGENSTRAT" |
colPalette |
A character vector indicating the color palette to use. Default is "Accent". |
title |
A string denoting the title to use for the plot. Default is 'PCA Plot' |
Creates a PCA plot from PLINK pca output, EIGENSTRAT smartpca, (or any tab-delimited file or data.frame with the same format as PLINK pca or EIGENSTRAT smartpca output).
A PCA plot.
Lindokuhle Nkambule
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.