morphospace | R Documentation |
Build a morphological space by performing dimensionality reduction on a table of morphological descriptors.
morphospace(x, weights = NULL, method = "PCA", ...)
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 |
method |
dimensionality reduction method. Currently only "PCA" is implemented (with |
... |
passed to the dimensionality reduction function. |
An object of class morphospace
.
s <- morphospace(plank[,-(1:2)], weights=plank$conc)
plot(s, choix="ind")
plot(s, choix="var")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.