**DAPC (Discriminant Analysis of Principal Components) combines both PCA and LDA.**

Rosewoods are the world’s most illegally trafficked wild product, which amounts to ~40% of the global illegal wildlife trade (more than all animal products added together). They are notoriously called the bloodwood, because the conflicts between the local poachers, often driven from extreme poverty, and the forest rangers cause bloodsheds. We want to save this species and alleviate the poverty at the same time. We are teaching local people how to source seeds, grow them, and generate income. NGOs and governments buy these trees for restoration projects. These all sound fantastic. However, it is known that traditionally forest conservation programmes ignore the standing genetic diversity and create genetic bottlenecks in the germplasms, for example, by sourcing seeds that are genetically closely related.

Untitled

<aside> 📥 Download

rosewood.csv

rosewood_coords.csv

</aside>

R packages

library(adegent)
library(poppr)
library(mapplots)
library(maps)
library(RColorBrewer)

Understanding and loading the data


Detecting population structure