data(plethodon)
Y.gpa<-gpagen(plethodon$land) #GPA-alignment
gp <- as.factor(paste(plethodon$species, plethodon$site)) # group must be a factor
plotTangentSpace(Y.gpa$coords, groups = gp)
##To change colors of groups
col.gp<-c(rep("black",10),rep("red",10),rep("yellow",10),rep("orange",10)) # must not be a factor
plotTangentSpace(Y.gpa$coords, groups = col.gp)
Run the code above in your browser using DataLab