GlobalPlot: Plot global admixture proportions

View source: R/GlobalPlot.R

GlobalPlotR Documentation

Plot global admixture proportions

Description

This function generates an admixture barplot based on ggplot2::ggplot()

Usage

GlobalPlot(Prop)

Arguments

Prop

Matrix of admixture proportions of dimension N (number of individuals) x K (number of groups)

Value

A global admixture barplot as a ggplot object

See Also

  • SimulatePop() to simulate a polyploid admixed population.

  • AdmixGlobal() to perform global (genome-wide) admixture inference and generate the Prop object.

Examples

## 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)

AdmixPoly documentation built on June 18, 2026, 1:06 a.m.