add.rare.plot: Add the rarefaction plot

View source: R/add.rare.plot.R

add.rare.plotR Documentation

Add the rarefaction plot

Description

Add the rarefaction plot to a called plot.randtest plot

Usage

add.rare.plot(x, ...)

Arguments

x

The randtest object

...

Any optional parameters to be passed to plot.randtest or plot.

Author(s)

Thomas Guillerme

See Also

rand.test

Examples

## Loading the geomorph dataset
require(geomorph)
data(plethodon)

## Performing the Procrustes superimposition
proc_super <- gpagen(plethodon$land, print.progress = FALSE)

## Getting the two most different specimen based on their landmark change radii
var_range <- variation.range(proc_super)

## Not run: 

set.seed(1)
## Selecting 6 random landmarks
random_part <- sample(1:nrow(var_range), 6)

## Rarefying the area difference to 5 elements without testing the parameter
rarefy_test <- rand.test(var_range[, "radius"], random_part, rarefaction = 5,
                         test = area.diff)

## Plotting the results (central tendency)
plot(rarefy_test)

## Add the rarefied observations to the plot
add.rare.plot(rarefy_test)

## End(Not run)


TGuillerme/landvR documentation built on July 4, 2025, 10:16 p.m.