powered by
Function to perform a principle component analysis
get.pca( population, path = NULL, database = NULL, gen = NULL, cohorts = NULL, coloring = "group", components = c(1, 2), plot = TRUE, pch = 1, export.color = FALSE )
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)
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
Genotype data for in gen/database/cohorts selected individuals
# NOT RUN { data(ex_pop) get.pca(ex_pop, gen=2) # }
Run the code above in your browser using DataLab