dispRity.through.time: Disparity through time.

View source: R/dispRity.wrapper.R

dispRity.through.timeR Documentation

Disparity through time.


Performs a disparity through time analysis.


dispRity.through.time(data, tree, time, metric = c(median, centroids), ...)



An ordinated matrix.


A phylo object.


A numeric value for the number of subsets to create.


A vector containing one to three functions (default = c(median, centroids)) (see dispRity for details).


Optional arguments to be passed to chrono.subsets, boot.matrix and dispRity.


By default the time subsets use method = "discrete", the matrix is bootstrapped 100 times.

Note that this is a wrapper function that allows users to run a basic disparity-through-time analysis without too much effort. As such it has a lot of defaults described in the functions that make up the analysis. See chrono.subsets, boot.matrix, dispRity.metric, summary.dispRity, plot.dispRity for more details of the defaults used in each of these functions. Note that any of these defaults can be changed within the disparity.through.time function.


A dispRity object that can be passed to summary or plot.


Thomas Guillerme

See Also

chrono.subsets, boot.matrix, dispRity.metric, summary.dispRity, plot.dispRity.


## Load the Beck & Lee 2014 data
data(BeckLee_mat50) ; data(BeckLee_tree)

## Run a simple disparity through time analysis (with three time bins)
result <- dispRity.through.time(BeckLee_mat50, BeckLee_tree, 3)
summary(result) ; plot(result)

## This is equivalent to run the following decomposed code
dispRity(boot.matrix(chrono.subsets(BeckLee_mat50, BeckLee_tree, time = 3, method = "discrete"),
                     bootstraps = 100),
         metric = c(median, centroids))

dispRity documentation built on May 29, 2024, 9:40 a.m.