TrailMapper is an R package for morphometric analysis of trails. This is an open-source implementation of the ArcGIS toolbox created by Tweneboah Kodua Dwamena.

Installation

You can install the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("kadyb/TrailMapper")

Usage

library("terra")
library("TrailMapper")

DEM = system.file("DEM.tif", package = "TrailMapper")
DEM = rast(DEM)

boundary = system.file("boundary.gpkg", package = "TrailMapper")
boundary = vect(boundary)
boundary$ID = 1 # this is now required to work

output = sample_transects(DEM, boundary, interval = 2)
str(output)