Dear ALL,

In a GM study of 60 specimens of two fish species (with 30 specimens for
each species), I am using the gm.prcomp() function in the geomorph 4.0.6
package to perform an ordinary PCA of the Procrustes-aligned coordinates
(where 'proc' is my GM data frame):

PCA <- gm.prcomp(proc$coords)
summary(PCA)

I want that the two species appear in different colors in the PCA plot, so
I used:

plot(PCA, pch = 20, col = c(rep("red", 30), rep("black", 30)))

or:

plot(PCA, pch = 20, col = df$species) (where 'df' is my original data frame)

But strangely in neither case the plot is correctly displayed (see the
attached figures): just a few points appear in either "red" or "black",
instead of the expected result of 30 points in one color and 30 points in
another.

Any hints?

Thanks in advance for any assistance you can provide.

With best regards,

-- 
Dr. Mauro J. Cavalcanti
E-mail: [email protected]
Web: https://github.com/maurobio
"Life is complex. It consists of real and imaginary parts."

-- 
You received this message because you are subscribed to the Google Groups 
"Morphmet" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/morphmet2/CAC1JhZY8Ozr0X_QBABVvrWOfnzigpmKS2ohA3_Ppjy5BBWiQzg%40mail.gmail.com.

Reply via email to