Hi Gabriella,
You could try the code below to add labels to individuals. We will take into account your suggestion to add this option in the next release of dartR.
Cheers,
Luis
library(dartR)
library(directlabels)
test <-
platypus.glpcoa <- gl.pcoa(test)
# running the function with save2tmp = TRUE to save the plot and tables in
# the temporal directory
gl.pcoa.plot(pcoa,test,save2tmp = TRUE,pop.labels ="none")
# listing the plots and tables in tempdir
gl.list.reports()
# choosing the plot or table to retrieve
res <- gl.print.reports(1)
# adding labels to individuals
res +
directlabels::geom_dl(aes(label = ind),
method = list("first.points",
cex = 1))