mFD hexasticker mFD

CRAN status R CMD check Website deployment License: GPL-2) LifeCycle Project Status: Active

The mFD package provides a “user friendly” interface to compute a global assessment of functional diversity by gathering computation of alpha and beta functional indices. As no package before, it guides users through functional analysis with one function per action to complete, several arguments that can be changed and allows personalized graphical outputs. Various tutorials are available on the mFD website to guide the user through the functional workflow.


You can install the stable version from CRAN with:

# Install stable version of < mFD > from CRAN ----

Or you can install the development version from GitHub with:

## Install < remotes > package (if not already installed) ----
if (!requireNamespace("remotes", quietly = TRUE)) {

## Install dev version of < mFD > from GitHub ----
remotes::install_github("CmlMagneville/mFD", build_vignettes = TRUE)

Get started


To compute functional diversity indices, users need:

For a complete understanding of the functional workflow and the package possibilities, please refer to the mFD General Workflow.


Please cite this package as:

Magneville C, Loiseau N, Albouy C, Casajus N, Claverie T, Escalas A, Leprieur F, Maire E, Mouillot D & Villeger S (2021) mFD: an R package to compute and illustrate the multiple facets of functional diversity. Submitted to Ecography.

You can also run:



SV, NL, CA, FL and CM coded the functions and their help. SV and CM led tutorial writings. All authors tested the functions and contributed to writing of helps and tutorials. NC optimized the package and made it ready for CRAN submission.