Creates a PCA plot
pca_plot(
data,
xComponent = "PC1",
yComponent = "PC2",
legendPos = "right",
soft = "PLINK",
colPalette = "Accent",
title = NULL
)
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)
A character vector indicating the principal component value to use for the x-axis. Default is "PC1"
A character vector indicating the principal component value to use for the x-axis. Default is "PC2"
A character vector indicating the legend position. Default is "right".
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"
A character vector indicating the color palette to use. Default is "Accent".
A string denoting the title to use for the plot. Default is 'PCA Plot'
A 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).
# NOT RUN {
pca_plot(pcaData)
# }
Run the code above in your browser using DataLab