Release:
Development (master):
CRAN:
dispRity is a R modular package for measuring disparity in multidimensional spaces.
Check out the paper associated with the first version of this package.
Check out the presentation or the video of some of the package's features.
install.packages("dispRity")
library(dispRity)
The package is also available in the phylotastic r-universe or through the phylogenetics or paleontology CRAN Task Views.
You can also install the piping hot development version (not always recommended!) by installing the package directly through github:
if(!require(devtools)) install.packages("devtools")
library(devtools)
install_github("TGuillerme/dispRity")
library(dispRity)
See the patch notes for the latest developments.
A detailed vignette is available online or as a pdf:
Otherwise, each functions has a detailed associated manual with examples in R (?which.function).
Additionally, you can learn more about the structure of dispRity objects here.
You can download the workshop follow-along sheet here (use right click > save link as...) or visualise it in html here.
Not sure what disparity metric to use?
Not sure what a disparity metric is in the first place?
Check out this paper on selecting the best metric for your specific question in Ecology and Evolution or the moms shiny app.
You can also find more information in the dispRity manual.
You can also check this lecture on how to choose disparity metrics.
Read the full patch note here.
dispRity has been not greatly optimised for using distance matrices: 1) it's now much faster thanks to the dist.helper new optional argument (storing the distance matrix in the cache) and 2) it now allows direct analyses of distance matrices in a dispRity pipeline.boot.matrix function has now been generalised to be able to bootstrap any elements of a matrix. Previously it only allowed to bootstrap elements (rows) but now can work on dimensions (columns) or both (distances).multi.ace to be more modular and better handle both continuous and/or discrete characters. This is secretly a pre-release for a future version that will greatly improve pipelines with ancestral state estimations ;).set.root.time to add root times to trees; remove.dispRity to cleanly remove parts of dispRity objects) and metrics (count.neigbhours).Previous patch notes and notes for the next version can be seen here.
Dave Bapst, Mario Corio, Armin Elsler, Graeme Lloyd (Request #104), Jari Oksanen (Request #85), Emmanuel Paradis, Abigail Pastore, Ashley Reaney, Gavin Thomas.
If you are using this package, please cite the paper:
Also don't forget to cite R and consider citing the ape package since dispRity heavily relies on it (and, generally, cite all the R packages you use!):
citation() and citation("ape") in R to get the latest citation formatTo cite the dispRity manual, please use:
To cite the time slicing method from the chrono.subsets function, please use:
I have been developping this package while being hired succesively by these people (thanks a lot for supporting me develop this package, sometimes as a side project): Natalie Cooper, Martin Brazeau, Vera Weisbecker and Gavin Thomas.
If you use the dispRity pacakge for morphological disparity analyses, you should also check the excellent Claddis package!
dispRity packageThe dispRity package was cited in these papers. Below is a list of specific papers using specific functionalities. These papers do not only use the functionalities highlighted here (and the author do much more awesome science!) but this is just a list of references if you want an independent guide on how to use these functions:
dispRity (using multiple metrics!)chrono.subsets
sim.morpho:bhatt.coeff:custom.subsets and test.dispRity:boot.matrix:dtt.dispRity:disparity.per.group function:dispRity and Claddis packages