morphospace: Build morphological space

View source: R/morphospace.R

morphospaceR Documentation

Build morphological space

Description

Build a morphological space by performing dimensionality reduction on a table of morphological descriptors.

Usage

morphospace(x, weights = NULL, method = "PCA", ...)

Arguments

x

data.frame or matrix of morphological descriptors. Should be all numeric and as close to normally-distributed as possible.

weights

vector of objects weights, with no weights by default. Should have as many elements as rows in x but they do not need to sum to 1.

method

dimensionality reduction method. Currently only "PCA" is implemented (with FactoMineR::PCA()).

...

passed to the dimensionality reduction function.

Value

An object of class morphospace.

Examples

s <- morphospace(plank[,-(1:2)], weights=plank$conc)
plot(s, choix="ind")
plot(s, choix="var")

jiho/morphr documentation built on May 11, 2024, 9:32 p.m.