# \donttest{
data(phyllostomid)
# Fit a linear model by PL
fit <- mvgls(mandible[,-1]~grp1, data=phyllostomid, phyllostomid$tree, model="lambda", method="PL")
# Discriminant analysis
da <- mvgls.dfa(fit)
# Project the mandible shape extremes on the first discriminant axe
proj_shape <- dfaShape(da, reference=coef(fit), axis=1, ndim=2, plot=TRUE)
polygon(proj_shape$min)
polygon(proj_shape$max, border="red")
# }
Run the code above in your browser using DataLab