dispRity
An open, modular R toolkit for flexible and reproducible analysis of diversity and occupancy in multidimensional ecological and evolutionary data.
https://github.com/tguillerme/disprity
Category: Biosphere
Sub Category: Biodiversity Analysis and Metrics
Keywords
disparity ecology multidimensionality palaeobiology r
Last synced: about 19 hours ago
JSON representation
Repository metadata
Measuring disparity with R
- Host: GitHub
- URL: https://github.com/tguillerme/disprity
- Owner: TGuillerme
- License: gpl-3.0
- Created: 2015-08-10T10:07:25.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-08-22T14:05:54.000Z (5 months ago)
- Last Synced: 2025-10-19T01:45:00.855Z (3 months ago)
- Topics: disparity, ecology, multidimensionality, palaeobiology, r
- Language: HTML
- Size: 104 MB
- Stars: 28
- Watchers: 5
- Forks: 12
- Open Issues: 4
- Releases: 15
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE
README.md
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.
Installing dispRity
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.
Vignettes and manuals
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.
Workshop
You can download the workshop follow-along sheet here (use right click > save link as...) or visualise it in html here.
Disparity/dissimilarity metrics/indices?
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.
Latest major patch highlights
dispRity v1.9 (2024-11-12) distant update
Read the full patch note here.
dispRityhas been not greatly optimised for using distance matrices: 1) it's now much faster thanks to thedist.helpernew optional argument (storing the distance matrix in the cache) and 2) it now allows direct analyses of distance matrices in a dispRity pipeline.boot.matrixfunction 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).- Redesigned
multi.aceto 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 ;). - New utility functions (
set.root.timeto add root times to trees;remove.dispRityto cleanly remove parts of dispRity objects) and metrics (count.neigbhours). - Loads of minor improvements and couple of bug fixes! Yay!
Previous patch notes and notes for the next version can be seen here.
Authors
Contributors (bug fixes, pull requests and suggestions)
Dave Bapst, Mario Corio, Armin Elsler, Graeme Lloyd (Request #104), Jari Oksanen (Request #85), Emmanuel Paradis, Abigail Pastore, Ashley Reaney, Gavin Thomas.
Citations
If you are using this package, please cite the paper:
- Guillerme, T. (2018) dispRity: a modular R package for measuring disparity. Methods in Ecology and Evolution. doi:10.1111/2041-210X.13022
Export citation
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!):
- Paradis E. & Schliep K. (2019). ape 5.0: an environment for modern phylogenetics and evolutionary analyses in R. Bioinformatics 35: 526-528.
- R Core Team (2020). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. URL https://www.R-project.org/.
or use
citation()andcitation("ape")inRto get the latest citation format
To cite the dispRity manual, please use:
- Guillerme, T. & Cooper, N. (2018) dispRity manual. figshare. Preprint. 10.6084/m9.figshare.6187337.v1
BibTex, EndNote, RefWorks, DataCite, more...
To cite the time slicing method from the chrono.subsets function, please use:
- Guillerme, T. & Cooper, N. (2018) Time for a rethink: time sub‐sampling methods in disparity‐through‐time analyses. Palaeontology, 61: 481-493. doi:10.1111/pala.12364
Export citation
Acknowledgments
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!
Examples of papers using the dispRity package
The 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:
Measuring disparity with dispRity (using multiple metrics!)
Ezcurra MD, Montefeltro FC, Pinheiro FL, Trotteyn MJ, Gentil AR, Lehmann OE, Pradelli LA. The stem-archosaur evolutionary radiation in South America. Journal of South American Earth Sciences. 2020 Oct 7:102935. Journal of South American Earth Sciences. 2020 DOI: 10.1016/j.jsames.2020.102935
Using different time binning with chrono.subsets
Godoy PL. Crocodylomorph cranial shape evolution and its relationship with body size and ecology. Journal of Evolutionary Biology. 2020 DOI: 10.1111/jeb.13540
Simulating discrete morphological data with sim.morpho:
Schaeffer J, Benton MJ, Rayfield EJ, Stubbs TL. Morphological disparity in theropod jaws: comparing discrete characters and geometric morphometrics. Palaeontology. 2020. DOI: 10.1111/pala.12455
Calculating the Bhattacharrya Coefficient with bhatt.coeff:
Heggli OA, Cabral J, Konvalinka I, Vuust P, Kringelbach ML. A Kuramoto model of self-other integration across interpersonal synchronization strategies. PLoS computational biology. 2019 DOI:10.1371/journal.pcbi.1007422
Comparisons between groups using custom.subsets and test.dispRity:
Esquerré D, Donnellan S, Brennan IG, Lemmon AR, Lemmon EM, Zaher H, Grazziotin FG, Keogh JS. Phylogenomics, biogeography and morphometrics reveal rapid phenotypic evolution in pythons after crossing Wallace’s line. Systematic Biology. 2019 DOI: 10.1093/sysbio/syaa024
Bootstrapping data and comparing groups in ecospace using boot.matrix:
de Oca-Aguilar AC, De Luna E, Rebollar-Téllez EA, Piermarini PM, Ibáñez-Bernal S. Morphological discontinuous variation and disparity in Lutzomyia (Tricholateralis) cruciata Coquillett, 1907 are not related to contrasting environmental factors in two biogeographical provinces. Zoomorphology. 2019 DOI:10.1007/s00435-019-00450-8
Simulating disparity through time using dtt.dispRity:
Skeels A, Dinnage R, Medina I, Cardillo M. Ecological interactions shape the evolution of flower color in communities across a temperate biodiversity hotspot Evolution Letters 2021 10.1002/evl3.225
Using the wrapper disparity.per.group function:
Taverne M, Fabre AC, King‐Gillies N, Krajnović M, Lisičić D, Martin L, Michal L, Petricioli D, Štambuk A, Tadić Z, Vigliotti C. Diet variability among insular populations of Podarcis lizards reveals diverse strategies to face resource‐limited environments. Ecology and Evolution. 2019 DOI:10.1002/ece3.5626.
Disparity analyses jointly using the dispRity and Claddis packages
Wang M, Lloyd GT, Zhang C, Zhou Z. The patterns and modes of the evolution of disparity in Mesozoic birds. Proceedings of the Royal Society B. 2021 DOI:10;288(1944):20203105
Owner metadata
- Name: Thomas Guillerme
- Login: TGuillerme
- Email:
- Kind: user
- Description: Macroevolution, macroecology, phylogenomics, palaeontology, beer taxonomy and unplanned stuff.
- Website: http://tguillerme.github.io
- Location: Sheffield, UK
- Twitter: TGuillerme
- Company: University of Sheffield
- Icon url: https://avatars.githubusercontent.com/u/3206086?u=c9b3f1b890f944b9e45b403eca1ef41f96aa04d8&v=4
- Repositories: 47
- Last ynced at: 2023-08-18T07:27:21.434Z
- Profile URL: https://github.com/TGuillerme
GitHub Events
Total
- Create event: 4
- Issues event: 1
- Release event: 1
- Watch event: 3
- Delete event: 1
- Issue comment event: 5
- Push event: 73
- Pull request event: 8
- Fork event: 1
Last Year
- Issues event: 1
- Watch event: 1
- Issue comment event: 3
- Push event: 39
- Pull request event: 5
- Fork event: 1
- Create event: 3
Committers metadata
Last synced: 4 days ago
Total Commits: 2,527
Total Committers: 12
Avg Commits per committer: 210.583
Development Distribution Score (DDS): 0.023
Commits in past year: 51
Committers in past year: 2
Avg Commits per committer in past year: 25.5
Development Distribution Score (DDS) in past year: 0.216
| Name | Commits | |
|---|---|---|
| Thomas Guillerme | g****t@t****e | 2470 |
| Natalie Cooper | n****r@n****k | 27 |
| calebowski | c****1@s****k | 11 |
| Natalie Cooper | n****r@t****e | 7 |
| Mark Puttick | m****k@g****m | 5 |
| Jari Oksanen | j****n@o****i | 1 |
| Graeme T. Lloyd | g****d@g****m | 1 |
| David Bapst | d****t@g****m | 1 |
| Mark Puttick | m****8@b****k | 1 |
| MN Puttick | m****8@v****k | 1 |
| MN Puttick | m****8@e****k | 1 |
| MN Puttick | m****8@e****k | 1 |
Committer domains:
- tcd.ie: 2
- eduroam-188-42.nomadic.bris.ac.uk: 1
- eduroam-72-73.nomadic.bris.ac.uk: 1
- vpn-user-248-018.nomadic.bris.ac.uk: 1
- bristol.ac.uk: 1
- oulu.fi: 1
- sheffield.ac.uk: 1
- nhm.ac.uk: 1
Issue and Pull Request metadata
Last synced: 4 days ago
Total issues: 45
Total pull requests: 79
Average time to close issues: 5 months
Average time to close pull requests: 5 days
Total issue authors: 7
Total pull request authors: 7
Average comments per issue: 0.58
Average comments per pull request: 0.37
Merged pull request: 68
Bot issues: 0
Bot pull requests: 0
Past year issues: 1
Past year pull requests: 7
Past year average time to close issues: N/A
Past year average time to close pull requests: about 20 hours
Past year issue authors: 1
Past year pull request authors: 2
Past year average comments per issue: 0.0
Past year average comments per pull request: 0.71
Past year merged pull request: 6
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- TGuillerme (26)
- nhcooper123 (14)
- EmSherratt (1)
- josephwb (1)
- calebowski (1)
- AEgit (1)
- limin321 (1)
Top Pull Request Authors
- TGuillerme (67)
- nhcooper123 (7)
- dwbapst (1)
- calebowski (1)
- jarioksa (1)
- josephwb (1)
- graemetlloyd (1)
Top Issue Labels
- suggestion (10)
- bug (2)
Top Pull Request Labels
Package metadata
- Total packages: 1
-
Total downloads:
- cran: 1,250 last-month
- Total docker downloads: 889
- Total dependent packages: 1
- Total dependent repositories: 2
- Total versions: 17
- Total maintainers: 1
cran.r-project.org: dispRity
Measuring Disparity
- Homepage: https://github.com/TGuillerme/dispRity
- Documentation: http://cran.r-project.org/web/packages/dispRity/dispRity.pdf
- Licenses: GPL-3 | file LICENSE
- Latest release: 1.7.0 (published over 3 years ago)
- Last Synced: 2026-01-07T03:30:14.353Z (4 days ago)
- Versions: 17
- Dependent Packages: 1
- Dependent Repositories: 2
- Downloads: 1,250 Last month
- Docker Downloads: 889
-
Rankings:
- Forks count: 6.897%
- Stargazers count: 11.574%
- Average: 14.774%
- Dependent packages count: 17.575%
- Downloads: 18.281%
- Dependent repos count: 19.546%
- Maintainers (1)
Dependencies
- R >= 3.6.0 depends
- ape * depends
- stats * depends
- Claddis * imports
- MASS * imports
- ade4 * imports
- castor * imports
- geometry * imports
- geoscale * imports
- grDevices * imports
- graphics * imports
- methods * imports
- mnormt * imports
- parallel * imports
- phangorn * imports
- phyclust * imports
- scales * imports
- spptest * imports
- utils * imports
- vegan * imports
- knitr * suggests
- testthat * suggests
- actions/cache v2 composite
- actions/checkout v2 composite
- actions/upload-artifact main composite
- r-lib/actions/setup-pandoc v1 composite
- r-lib/actions/setup-r v1 composite
Score: 13.62200347577837