Learn R Programming

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

659

Version

1.1.1-1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Maxime Lenormand

Last Published

November 11th, 2024

Functions in bioregion (1.1.1-1)

hclu_optics

OPTICS hierarchical clustering algorithm
install_binaries

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

Finding communities based on propagating labels
mat_to_net

Create a data.frame from a contingency table
netclu_leadingeigen

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

Create a map of bioregions
net_to_mat

Create a contingency table from a data.frame
netclu_beckett

Community structure detection in weighted bipartite network via modularity optimization
netclu_infomap

Infomap community finding
netclu_greedy

Community structure detection via greedy optimization of modularity
netclu_leiden

Finding communities using the Leiden algorithm
nhclu_clara

Non hierarchical clustering: CLARA
nhclu_pam

Non hierarchical clustering: partitioning around medoids
nhclu_dbscan

dbscan clustering
netclu_walktrap

Community structure detection via short random walks
nhclu_clarans

Non hierarchical clustering: CLARANS
nhclu_kmeans

Non hierarchical clustering: k-means analysis
partition_metrics

Calculate metrics for one or several partitions
netclu_louvain

Louvain community finding
netclu_oslom

OSLOM community finding
vegemat

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

Compute similarity metrics between sites based on species composition
subset_node

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

Convert similarity metrics to dissimilarity metrics
vegesf

Spatial distribution of Mediterranean vegetation (spatial grid)
vegedf

Spatial distribution of Mediterranean vegetation (data.frame)
hclu_diana

Divisive hierarchical clustering based on dissimilarity or beta-diversity
compare_partitions

Compare cluster memberships among multiple partitions
find_optimal_n

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

Convert dissimilarity metrics to similarity metrics
fishmat

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

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

Cut a hierarchical tree
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)