mm_grp_dists: Distance from Centroid

View source: R/helper_functions.R

mm_grp_distsR 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 vusing boxplots? If FALSE, distance calculations are still performed


ehrlichd/moRphomenses documentation built on March 10, 2024, 3:06 a.m.