# sdmApp package: A user-friendly application for species distribution modeling

#### Aboubacar HEMA, Babacar NDAO, Louise LEROUX, Abdoul Aziz DIOUF

#### 2021-01-21

# Introduction and Main Features

sdmApp is a R package containing a Shiny application that allows non-expert R users to easily model species distribution. It offers a reproducible work flow for species distribution modeling into a single and user friendly environment. sdmApp takes Raster data (in format supported by the Raster package) and species occurrence data (several format supported) as input argument. This package provides an interactive graphical user interface (GUI). This document will give an overview of the main functionalities of the graphical user interface. The main features of the GUI is:

- Uploading data (raster and species occurrence files)

- View correlation between raster

- Use CENFA to select species predictors

- Apply a spatial blocking for cross-validation based on the blockCV package

- Apply species distribution models with or without a spatial blocking strategy

- Export results

- Keep reproduce (R code) by being able do download the underlying code from sdmApp.

The GUI is build around 5 main windows, which can be selected from the navigation bar at the top of the screen. Initially, some of these windows will be empty and their content changes once data (both raster and species occurrence files) have been uploaded.

# Installation

The sdmApp is available in GitHub and it will be available in CRAN soon. It is recommended to install the dependencies of the package. To install the package from GitHub use:

    remotes::install_github("Abson-dev/sdmApp", dependencies = TRUE)

    # loading the package
    library(sdmApp)

    # Graphical User Interface (GUI)
    sdmApp()

# Package data

The package contains the raw format of the following data:

# References:

- Bahn, V., & McGill, B. J. (2012). Testing the predictive performance of distribution models. Oikos, 122(3), 321–331.

- Hiemstra, P. H., Pebesma, E. J., Twenhöfel, C. J., & Heuvelink, G. B. (2009). Real-time automatic interpolation of ambient gamma dose rates from the Dutch radioactivity monitoring network. Computers & Geosciences, 35(8), 1711–1721.

- Hastie, T., Tibshirani, R., & Friedman, J. (2009). The elements of statistical learning: Data Mining, Inference, and Prediction (2nd ed., Vol. 1). Springer series in statistics New York.

- Leta, S., Fetene, E., Mulatu, T., Amenu, K., Jaleta, M.B., Beyene, T.J., Negussie, H., Revie, C.W., 2019. Modeling the global distribution of Culicoides imicola: an Ensemble approach. Sci. Rep. 9. doi: 10.1038/s41598-019-50765-1

- Luo, D., Silva, D.P., De Marco Júnior, P., Pimenta, M., Caldas, M.M., 2020. Model approaches to estimate spatial distribution of bee species richness and soybean production in the Brazilian Cerrado during 2000 to 2015. Sci. Total Environ. 737, 139674. doi: 10.1016/j.scitotenv.2020.139674

- Mudereri, B.T., Abdel-Rahman, E.M., Dube, T., Landmann, T., Khan, Z., Kimathi, E., Owino, R., Niassy, S., 2020. Multi-source spatial data-based invasion risk modeling of Striga ( Striga asiatica ) in Zimbabwe. GIScience Remote Sens. 1–19. doi: 10.1080/15481603.2020.1744250

- O’Sullivan, D., & Unwin, D. J. (2010). Geographic Information Analysis (2nd ed.). John Wiley & Sons.

- Phillips, S. J., Anderson, R. P., Dudík, M., Schapire, R. E., & Blair, M. E. (2017). Opening the black box: an open-source release of Maxent. Ecography.

- Roberts, D.R., Bahn, V., Ciuti, S., Boyce, M.S., Elith, J., Guillera-Arroita, G., Hauenstein, S., Lahoz-Monfort, J.J., Schröder, B., Thuiller, W., others, 2017. Cross-validation strategies for data with temporal, spatial, hierarchical, or phylogenetic structure. Ecography. 40: 913-929.

- Schindler, S., von Wehrden, H., Poirazidis, K., Hochachka, W.M., Wrbka, T., Kati, V., 2015. Performance of methods to select landscape metrics for modelling species richness. Ecol. Modell. 295, 107–112.doi: 10.1016/J.ECOLMODEL.2014.05.012

- Simensen, T., Horvath, P., Vollering, J., Erikstad, L., Halvorsen, R., Bryn, A., 2020. Composite landscape predictors improve distribution models of ecosystem types. Divers. Distrib. 26, 928–943. doi: 10.1111/ddi.13060

- Telford, R. J., & Birks, H. J. B. (2009). Evaluation of transfer functions in spatially structured environments. Quaternary Science Reviews, 28(13), 1309–1316.

- Thuiller, W., Georges, D., Engler, R., & Breiner, F. (2017). biomod2: Ensemble Platform for Species Distribution Modeling. R package version 3.3-7. https://CRAN.R-project.org/package=biomod2.

- Valavi R, Elith J, Lahoz-Monfort JJ, Guillera-Arroita G. blockCV: An R package for generating spatially or environmentally separated folds for k-fold cross-validation of species distribution models. Methods Ecol Evol. 2019; 10:225–232. doi: 10.1111/2041-210X.13107