Note: Do not forget to change the names of the populations, if you are using a different dataset.

Population affiliation

To calculate the membership probability of each individual with a certain population, we perform \(compoplot\), which gives us the idea about the genetic composition of each individual and its probable affiliation with a given population.