morpho.volume | R Documentation |
This function returns the volume (and volumes by groups) of a morphospace.
morpho.volume(x, groups)
x |
Dataset with three columns (3 dimensions in the morphospace) |
groups |
An optional factor defining groups |
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.
Marta Vidal-Garcia
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.