morpho.volume: morpho.volume

morpho.volumeR Documentation

morpho.volume

Description

This function returns the volume (and volumes by groups) of a morphospace.

Usage

morpho.volume(x, groups)

Arguments

x

Dataset with three columns (3 dimensions in the morphospace)

groups

An optional factor defining groups

Value

This function returns a list with two objects. The first object is the volume for the whole dataset. If groups have been selected, then it also returns a data.frame with the volumes by group and the percentage of the total volume occupied in the morphospace.

Author(s)

Marta Vidal-Garcia

Examples

   # x <- pc.scores[,1:3] # first three PC scores
   # groups <- c("sp_A", "sp_A", "sp_B", "sp_A", "sp_A", "sp_B", "sp_B", "sp_A", "sp_A", "sp_A", "sp_A")
   # names(groups) <- row.names(x)
   # morpho.volume(x, groups) 
  

marta-vidalgarcia/morpho.tools.GM documentation built on April 7, 2023, 12:54 a.m.