/ElevDistr

Calculate the Distance to the Nearest Local Treeline

Primary LanguageROtherNOASSERTION

ElevDistr

R-CMD-check

ElevDistr is a method to calculate the distance to the climatic tree line for large data sets of coordinates (WGS 84) with geographical uncertainty. This R package was developed in the context of the article "Avoiding impacts of phylogenetic tip-state-errors on dispersal and extirpation rates in alpine plant biogeography". For citing this package see below. The default thresholds and the treeline definition is based on Paulsen and Körner, Alp. Bot. 124: 1-12 (2014), users are free to decide what climate layers they would like to use.

Installation

The package ElevDistr can be installed via CRAN or from GitHub using the package devtools.

Stable version from CRAN:

install.packages("ElevDistr")
library("ElevDistr")

Developmental from GitHub:

install.packages("devtools", repos = "http://cran.us.r-project.org")
devtools::install_github("LivioBaetscher/ElevDistr")
library("ElevDistr")

How to cite this work

Please cite: Bätscher and de Vos, J. Biogeogr. (2024), or see:

citation("ElevDistr")

Further information

A detailed description can be found on the Wiki or the package vignette.