| GlobalPlot | R Documentation |
This function generates an admixture barplot based on ggplot2::ggplot()
GlobalPlot(Prop)
Prop |
Matrix of admixture proportions of dimension
|
A global admixture barplot as a ggplot object
SimulatePop() to simulate a polyploid admixed population.
AdmixGlobal() to perform global (genome-wide) admixture inference and
generate the Prop object.
## Simulate a polyploid admixed population
DataSim <- SimulatePop(K=3L, N=10L, P=6L, M=50L, C=5L, L=10L, Seed=123, NbThreads=1)
## Perform global admixture inference
ResGlobalAdmix <- AdmixGlobal(Geno=DataSim$Geno, K=3, Verbose=FALSE, NbThreads=1)
## Admxiture barplot
GlobalPlot(ResGlobalAdmix$Prop)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.