pca2d(x, a = 1:3, sgn = 1, labcol, bound.x1 = c(-0.15, 0.15), bound.x2 = c(-0.15, 0.15), bound.y = c(-0.15, 0.15), pointscale = 1, phylo = FALSE, phy, genus = "")
phy
) are estimated using fastAnc
from the
phytools
package (Revell, 2012), and edges between nodes are joined according to the tree topology specified in phy
phylo
pcloadhm
). However, this requires that the number of rows exceeds the number of columns (variables). If specimen sample size is small,
Q-mode PCA is possible. In this case, the input data matrix is transposed. Although species clusters can still be visualized,
the principal components do not seem to be interpretable. If a phylogeny of the species is available, it can be superimposed onto the
principal component space to yield a phylomorphospace to provide a graphical complement to formal phylogenetic signal testing.
For the latter, see physignal
in the geomorph
package (Adams & Otarola-Castillo, 2013).
Khang TF, Soo OYM, Tan WB, Lim LHS. (2016). Monogenean anchor morphometry: systematic value, phylogenetic signal, and evolution. PeerJ 4:e1668.
Revell LJ. (2012). phytools: An R package for phylogenetic comparative biology (and other things). Methods in Ecology and Evolution 3:217-223.
pcloadhm
library(phytools)
data(ligotree)
data(ligophorus_shape)
data(spcolmap)
#PCA plot for the shape variables of the ventral anchors
pca2d(ligophorus_shape[,1:22], labcol=spcolmap$color, phylo=TRUE,
phy=ligotree, genus="L. ", bound.y=c(-0.1, 0.1), bound.x1=c(-0.2,0.2),
bound.x2 = c(-0.2,0.2))
Run the code above in your browser using DataLab