Learn R Programming

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.8

License

AGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Barnabas H. Daru

Last Published

August 15th, 2023

Functions in phyloregion (1.0.8)

phylo_endemism

Phylogenetic Endemism
hexcols

Generate diverging colors in HCL colour space.
phylobuilder

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

Phylogenetic beta diversity standardized for species beta diversity
rast2comm

Convert raw input distribution data to community
read.community

Read in sparse community matrices
get_clades

Get descendant nodes of phylogeny at a given time depth
nodepie

Label phylogenetic nodes using pie
plot.phyloregion

Visualize biogeographic patterns
plot.sparse

Create illustrative sparse matrix
timeslice

Slice phylogenetic tree at various time depths
select_linkage

Cluster algorithm selection and validation
optimal_phyloregion

Determine optimal number of clusters
phylobeta_core

Phylogenetic beta diversity
unifrac

UniFrac distance
indicators

Top driving species in phyloregions
phyloregion

Compute phylogenetic regionalization and evolutionary distinctiveness of phyloregions
sdm

Species distribution models
plot_pie

Visualize biogeographic patterns using pie charts
phyloregion-package

Biogeographic regionalization and macroecology
weighted_endemism

Measure the distribution of narrow-ranged or endemic species.
selectbylocation

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

Objects exported from other packages
random_species

Generate random species distributions in space
PD_ses

Phylogenetic diversity standardized for species richness
counts

Phyloregions for functional traits and phylogeny
coldspots

Computes biodiversity coldspots and hotspots
collapse_range

Collapse nodes and ranges based on divergence times
africa

Plants of southern Africa
arc_labels

Add arc labels to plotted phylogeny
beta_core

Taxonomic (non-phylogenetic) beta diversity
long2sparse

Conversion of community data
map_trait

Map species' trait values in geographic space
EDGE

Evolutionary Distinctiveness and Global Endangerment
PD

Phylogenetic diversity
evol_distinct

Species' evolutionary distinctiveness
match_phylo_comm

Match taxa and in phylogeny and community matrix
functional_beta

Functional beta diversity for mixed-type functional traits
mean_dist

Mean distance matrix from a set of distance matrices
fishnet

Create fishnet of regular grids
fitgom

Fits Grade of membership models for biogeographic regionalization