View source: R/select.procrustes.R
select.procrustes | R Documentation |
Selects specific values of specimens from a Procrustes superimposition
select.procrustes(procrustes, selector = base::mean, factors)
procrustes |
Procrustes data of class |
selector |
A |
factors |
A |
The coordinates of a hypothetical specimen (e.g. the mean specimen).
Thomas Guillerme
## Loading the plethodon dataset
require(geomorph)
data(plethodon)
## Performing a procrustes superimposition
procrustes <- geomorph::gpagen(plethodon$land, print.progress = FALSE)
## Selecting the mean Procrustes
mean_procrustes <- select.procrustes(procrustes, selector = base::mean)
## Selecting the minimum Procrustes shape for each species
min_procrustes <- select.procrustes(procrustes, selector = min,
factors = list(which(plethodon$species == "Jord"),
which(plethodon$species == "Teyah")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.