Hi Luis,
I have been having this problem too.
I don't seem able to use the "as.pop" argument.
I would like to colour/label the points by individual or by species name (which is an extra field column I added in the individual metadata), but I don't seem able to make it work.
I also tried to install the developert@dartR version (2.1.1), but it still doesn't work and I get the folowing error:
"Error in gl.pcoa.plot(dataset1_PCA, :
argument 5 matches multiple formal arguments"
Code below:
<
gl.pcoa.plot(
dataset1_PCA ,
dataset1 ,
scale = FALSE,
ellipse = FALSE,
p = 0.95,
labels = "pop",
as.pop = "ind", # I also tried using "Species" (my species column in the individual metadata, used with or without " "), and "dataset1@other[["ind.metrics"]][["Species_dartR"]]" (with or without " ")
verbose = 5
)
>
But the message I get is always the same:
"Error in gl.pcoa.plot(dataset1_PCA, :
argument 5 matches multiple formal arguments"
I did not try to install your dartR version (as you suggested in the post above): gl.install.vanilla.dartR(flavour = "dev_luis"), because you said in another reply to one of my posts that the gl.install.vanilla.dartR() function doesn't work?
Is there a solution for labelling the points in the PCA plot by individual/other metrics at the moment?
Thanks a lot as usual!
Best,
Gabriella