phylo.pls(A1, A2, phy, warpgrids = TRUE, iter = 999, verbose = FALSE)
read.tree
in library apegpagen
].
The function estimates the degree of morphological
covariation between two sets of variables while accounting
for phylogeny using partial least squares (Adams and Felice
2014). The observed value is statistically assessed using
permutation, where data for one block are permuted across
the tips of the phylogeny, an estimate of the covariation
between sets of variables, and compared to the observed
value.
A plot of PLS scores from Block1 versus Block2 is provided
for the first set of PLS axes. Thin-plate spline
deformation grids along these axes are also shown (if data
were input as a 3D array).data(plethspecies)
Y.gpa<-gpagen(plethspecies$land) #GPA-alignment
phylo.pls(Y.gpa$coords[1:5,,],Y.gpa$coords[6:11,,],plethspecies$phy,iter=5)
Run the code above in your browser using DataLab