Learn R Programming

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

bioregion

This R package gathers a comprehensive set of algorithms to perform bioregionalisation analyses.

Bioregionalisation methods can be based on hierarchical clustering algorithms, non-hierarchical clustering algorithms or network algorithms.

:arrow_double_down: Installation

The package can be installed with the following command line in R session:

From the CRAN

install.packages("bioregion")

or from GitHub

# install.packages("devtools")
devtools::install_github("bioRgeo/bioregion")

:scroll: Vignettes

We wrote several vignettes that will help you using the bioregion R package. Vignettes available are the following ones:

Alternatively, if you prefer to view the vignettes in R, you can install the package with build_vignettes = TRUE. But be aware that some vignettes can be slow to generate.

remotes::install_github("bioRgeo/bioregion",
                        dependencies = TRUE, upgrade = "ask", 
                        build_vignettes = TRUE)

vignette("bioregion")

:desktop_computer: Functions

An overview of all functions and data is given here.

:bug: Find a bug?

Thank you for finding it. Head over to the GitHub Issues tab and let us know about it. Alternatively, you can also send us an e-mail. We will try to get to it as soon as we can!

References and dependencies

bioregion depends on ape, bipartite, cluster, data.table, dbscan, dynamicTreeCut, earth, fastcluster, ggplot2, grDevices, igraph, mathjaxr, Matrix, Rcpp, Rdpack, rlang, rmarkdown, segmented,sf, stats, tidyr and utils.

Copy Link

Version

Install

install.packages('bioregion')

Monthly Downloads

770

Version

1.1.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Maxime Lenormand

Last Published

April 19th, 2024

Functions in bioregion (1.1.1)

net_to_mat

Create a contingency table from a data.frame
map_clusters

Create a map of bioregions
netclu_leadingeigen

Finding communities based on leading eigen vector of the community matrix
netclu_beckett

Community structure detection in weighted bipartite network via modularity optimization
netclu_labelprop

Finding communities based on propagating labels
install_binaries

Download, unzip, check permission and test the bioregion's binary files
netclu_infomap

Infomap community finding
netclu_greedy

Community structure detection via greedy optimization of modularity
hclu_optics

OPTICS hierarchical clustering algorithm
mat_to_net

Create a data.frame from a contingency table
partition_metrics

Calculate metrics for one or several partitions
nhclu_dbscan

dbscan clustering
netclu_louvain

Louvain community finding
nhclu_pam

Non hierarchical clustering: partitioning around medoids
nhclu_kmeans

Non hierarchical clustering: k-means analysis
netclu_oslom

OSLOM community finding
netclu_walktrap

Community structure detection via short random walks
nhclu_clarans

Non hierarchical clustering: CLARANS
nhclu_clara

Non hierarchical clustering: CLARA
netclu_leiden

Finding communities using the Leiden algorithm
vegemat

Spatial distribution of Mediterranean vegetation (co-occurrence matrix)
subset_node

Extract a subset of node from a bioregion.clusters object
similarity_to_dissimilarity

Convert similarity metrics to dissimilarity metrics
similarity

Compute similarity metrics between sites based on species composition
vegesf

Spatial distribution of Mediterranean vegetation (spatial grid)
vegedf

Spatial distribution of Mediterranean vegetation (data.frame)
find_optimal_n

Search for an optimal number of clusters in a list of partitions
dissimilarity_to_similarity

Convert dissimilarity metrics to similarity metrics
compare_partitions

Compare cluster memberships among multiple partitions
fishmat

Spatial distribution of fish in Europe (co-occurrence matrix)
hclu_hierarclust

Hierarchical clustering based on dissimilarity or beta-diversity
fishsf

Spatial distribution of fish in Europe
fishdf

Spatial distribution of fish in Europe (data.frame)
dissimilarity

Compute dissimilarity metrics (beta-diversity) between sites based on species composition
cut_tree

Cut a hierarchical tree
hclu_diana

Divisive hierarchical clustering based on dissimilarity or beta-diversity