Learn R Programming

⚠️There's a newer version (1.0.8) of this package.Take me there.

phyloregion

An R package for biogeographic regionalization (the classification of geographical areas in terms of their biotas) and macroecology. With macroecological datasets of ever increasing size and complexity, phyloregion offers the possibility of handling and executing very large scale analysis of biogeographic regionalization. It also allows fast and memory efficient analysis of standard conservation measures such as phylogenetic diversity, phylogenetic endemism, evolutionary distinctiveness and global endangerment. phyloregion can run on any operating system (Mac, Linux, Windows or even high performance computing cluster) with R 3.6.0 (or higher) installed.

How to cite

The original implementation of phyloregion is described in:

Daru, B.H., Karunarathne, P. & Schliep, K. (2020) phyloregion: R package for biogeographic regionalization and macroecology. Methods in Ecology and Evolution 11: 1483-1491. doi: 10.1111/2041-210X.13478.

It is based on the method described in:

Daru, B.H., Farooq, H., Antonelli, A. & Faurby, S. (2020) Endemism patterns are scale dependent. Nature Communications 11: 2115 doi: 10.1038/s41467-020-15921-6.

The original conceptual is described in:

Daru, B.H., Elliott, T.L., Park, D.S. & Davies, T.J. (2017) Understanding the processes underpinning patterns of phylogenetic regionalization. Trends in Ecology & Evolution 32: 845-860. doi: 10.1016/j.tree.2017.08.013

Installation

phyloregion is available from the Comprehensive R Archive Network, so you can use the following line of code to install and run it:

install.packages("phyloregion")

Alternatively, you can install the development version of phyloregion hosted on GitHub. To do this, you will need to install the devtools package. In R, type:

if (!requireNamespace("devtools", quietly = TRUE)) 
    install.packages("devtools") 
devtools::install_github("darunabas/phyloregion")

Feedback

If you have any questions, suggestions or issues regarding the package, please add them to GitHub issues

License

The license for phyloregion is similar to that of the package on CRAN:

License: AGPL-3

The AGPL-3 license can be found at: https://cran.r-project.org/web/licenses/AGPL-3

Copy Link

Version

Install

install.packages('phyloregion')

Monthly Downloads

449

Version

1.0.6

License

AGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Barnabas H. Daru

Last Published

May 1st, 2021

Functions in phyloregion (1.0.6)

long2sparse

Conversion of community data
phylobeta_core

Phylogenetic beta diversity
indicators

Top driving species in phyloregions
choropleth

Bin values
phylobeta_ses

Phylogenetic beta diversity standardized for species beta diversity
collapse_range

Collapse nodes and ranges based on divergence times
counts

Phyloregions for functional traits and phylogeny
arc_labels

Add arc labels to plotted phylogeny
EDGE

Evolutionary Distinctiveness and Global Endangerment
PD

Phylogenetic diversity
phylobuilder

Create a subtree with largest overlap from a species list.
select_linkage

Cluster algorithm selection and validation
map_trait

Map species' trait values in geographic space
phyloregion-package

Biogeographic regionalization and spatial conservation
coldspots

Computes biodiversity coldspots and hotspots
read.community

Read in sparse community matrices
raster2comm

Convert raw input distribution data to community
selectbylocation

Select polygon features from another layer and adds polygon attributes to layer
mean_dist

Mean distance matrix from a set of distance matrices
plot_pie

Visualize biogeographic patterns using pie charts
PD_ses

Phylogenetic diversity standardized for species richness
plot_structure

Visualize biogeographic patterns using structure plots
nodepie

Label phylogenetic nodes using pie
africa

Plants of southern Africa
random_species

Generate random species distributions in space
match_phylo_comm

Match taxa and in phylogeny and community matrix
plot_swatch

Plot shapefile polygons based on slot values
beta_core

Taxonomic (non-phylogenetic) beta diversity
hexcols

Generate diverging colors in HCL colour space.
plot.phyloregion

Visualize biogeographic patterns
sdm

Species distribution models for a range of algorithms
get_clades

Get descendant nodes of phylogeny at a given time depth
reexports

Objects exported from other packages
phyloregion

Calculate evolutionary distinctiveness of phyloregions
fishnet

Create a fishnet of regular grids
evol_distinct

Species' evolutionary distinctiveness
timeslice

Slice phylogenetic tree at various time depths
phylo_endemism

Phylogenetic Endemism
optimal_phyloregion

Determine optimal number of clusters
weighted_endemism

Measure the distribution of narrow-ranged or endemic species.