Hi! I'm a beginner in R.
I have a question important to me that I don't know how to solve. I would like to see the ID (i.e., catalog number) of each individual in my graphics (PCA, Regression..) to identify each one of them. The ID's are written in the TPS file that I have imported into R, my problem is that I don't know what function I have to use to make them appear in the graphics. I used the function: text(PCA$x, PCA$y, row.names(gpa$coords)) but I don't get the IDs but the numbers. I would be very grateful if you could help me.
My workflow is as follows:
tps <-readland.tps(file.choose("Semilandmarks_File.tps"), specID = c("ID"), readcurves = TRUE, warnmsg = T)
slides <- define.sliders(c(2:8))
gpa <- gpagen(A=tps,curves = slides, PrinAxes = TRUE, Proj = TRUE, ProcD=FALSE, print.progress = TRUE)
gdf <- geomorph.data.frame(gpa) attributes(gpa)
PCA <- gm.prcomp(gpa$coords) summary(PCA)
> text(PCA$x, PCA$y, row.names(gpa$coords))