mm_grp_dists {moRphomenses} | R Documentation |
Distance from Centroid
Description
Calculate and plot group distance from centroid (grand mean)
Usage
mm_grp_dists(dat, grps, plots = TRUE)
Arguments
dat |
a 2d matrix of data. Presumably PC scores |
grps |
a vector defining group IDs |
plots |
Logical. Should distances be plotted as boxplots? If FALSE, distance calculations are still performed |
Value
A list containing individual distances from the sample mean shape. If
plots=TRUE
, will also visualize results
[Package moRphomenses version 1.0.2 Index]