powered by
Function to perform a principle component analysis
get.pca( population, path = NULL, database = NULL, gen = NULL, cohorts = NULL, id = NULL, coloring = "group", components = c(1, 2), plot = TRUE, pch = 1, export.color = FALSE, use.id = FALSE )
Principle components of gen/database/cohorts selected individuals
Population list
Location were to save the PCA-plot
Groups of individuals to consider for the export
Quick-insert for database (vector of all generations to export)
Quick-insert for database (vector of names of cohorts to export)
Individual IDs to search/collect in the database
Coloring by "group", "sex", "plain"
Default: c(1,2) for the first two principle components
Set to FALSE to not generate a plot
Point type in the PCA plot
Set to TRUE to export the per point coloring
Set TRUE to display IDs instead of dots in the PCA plot
data(ex_pop) get.pca(ex_pop, gen=2)
Run the code above in your browser using DataLab