ElevDistr is a method to calculate the distance to the climatic tree line for large data sets of coordinates (WGS 84) with geographical uncertainty. 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.
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")
A detailed description can be found on the Wiki or the package vignette.