How to install?
The stable version can be installed from the CRAN:
install.packages("rasterdiv")
The development version can be installed from GitHub:
# install.packages("remotes")
remotes::install_github("mattmar/rasterdiv")
What is rasterdiv?
rasterdiv is an R package that provides functions to apply diversity indexes based on Information Theory on RasterLayer or numerical matrices. Supported indexes are:
- Parametric Rao’s quadratic entropy (classical and multidimensional);
- Shannon’s diversity index;
- Pielou’s evenness index;
- Hill’s generalised entropy;
- Rényi’s generalised entropy;
- Berger-Parker index;
- Cumulative Residual Entropy (CRE)
:partying_face: rasterdiv now integrates also functions to prepare and plot time series with “helical graphs”, check out this vignette for more infos: Visualising rasterdiv indexes with Helical Plots.
🪟 rasterdiv uses a “moving window” approach to derive such indexes; however, area-based (e.g., by using vector layers) Parametric Rao’s quadratic entropy is also possible through the paRao() function. Read more on rasterdiv:
- rasterdiv—The rasterdiv package for measuring diversity from space;
- rasterdiv—An Information Theory tailored R package for measuring ecosystem heterogeneity from space: To the origin and back;
- Measuring diversity from space: a global view of the free and open source rasterdiv R package under a coding perspective;
- From zero to infinity: Minimum to maximum diversity of the planet by spatio-parametric Rao’s quadratic entropy
- Helical graphs to visualize the NDVI temporal variation of forest vegetation in an open source space