data(microsatt)
w <- microsatt$tab[1:microsatt$loci.eff[1]]
if(adegraphicsLoaded()) {
g1 <- scatter(dudi.pco(lingoes(dist.prop(w, 1)), scann = FALSE), plot = FALSE)
g2 <- scatter(dudi.pco(lingoes(dist.prop(w, 2)), scann = FALSE), plot = FALSE)
g3 <- scatter(dudi.pco(dist.prop(w, 3), scann = FALSE), plot = FALSE)
g4 <- scatter(dudi.pco(lingoes(dist.prop(w, 4)), scann = FALSE), plot = FALSE)
G <- ADEgS(list(g1, g2, g3, g4), layout = c(2, 2))
} else {
par(mfrow = c(2, 2))
scatter(dudi.pco(lingoes(dist.prop(w, 1)), scann = FALSE))
scatter(dudi.pco(lingoes(dist.prop(w, 2)), scann = FALSE))
scatter(dudi.pco(dist.prop(w, 3), scann = FALSE))
scatter(dudi.pco(lingoes(dist.prop(w, 4)), scann = FALSE))
par(mfrow = c(1, 1))
}
Run the code above in your browser using DataLab