Function to generate admixture plots
get.admixture(
population,
geno = NULL,
gen = NULL,
database = NULL,
cohorts = NULL,
d = NULL,
verbose = TRUE,
plot = TRUE,
sort = FALSE,
sort.cutoff = 0.01
)
Population list
Manually provided genotype dataset to use instead of gen/database/cohorts
Quick-insert for database (vector of all generations to consider)
Groups of individuals to consider
Quick-insert for database (vector of names of cohorts to consider)
dimensions to consider in admixture plot (default: automatically estimate a reasonable number)
Set to FALSE to not display any prints
Set to FALSE to not generate an admixture plot
Set to TRUE to sort individuals according to contributes from the first dimension
Skip individuals with contributions under this threshold (and use next dimension instead) data(ex_pop) get.admixture(ex_pop, gen=4:6, d=2, sort=TRUE)
Matrix with admixture proportion