Learn R Programming

lidaRtRee

R package for forest analysis with airborne laser scanning data

lidaRtRee provides functions for forest objects detection, structure features computation, model calibration and mapping:

  • co-registration of field plots with LiDAR data (Monnet and Mermin (2014));
  • tree detection (method 1 in Eysn et al. (2015)) and segmentation;
  • forest parameters estimation with the area-based approach: model calibration with ground reference, and maps export;
  • extraction of both physical (gaps, edges, trees) and statistical features from LiDAR data useful for e.g. habitat suitability modeling (Glad et al. (2020)) or forest maturity mapping (Fuhr et al. (2022)).

Install

  • R >= 4.2.3 recommended, package lidR >= 4.0.0 required.
  • Install from CRAN, by running in the R console: install.packages("lidaRtRee").
  • Build development version from source with the devtools package: devtools::install_git("https://forgemia.inra.fr/lidar/lidaRtRee").

Tutorials

Tutorials using lidaRtRee functions are available in the vignettes folder as Rmarkdown files, including datasets to run the code. The available tutorials are:

Acknowledgements / funding

lidaRtRee development (2018-2021) was funded by the ADEME (french Agency for Ecological Transition) through the PROTEST project (grant 1703C0069 of the GRAINE program).

Copy Link

Version

Install

install.packages('lidaRtRee')

Monthly Downloads

307

Version

4.0.8

License

GPL-3

Maintainer

Jean-Matthieu Monnet

Last Published

January 23rd, 2025

Functions in lidaRtRee (4.0.8)

clouds_tree_metrics

Computes metrics on trees detected in list of point clouds.
coregistration

Tree inventory and canopy height model coregistration
convert_raster

Raster format conversion
points2DTM

Digital Terrain Model
lma_check

Checks linear model assumptions of a multiple regression model
boxcox_tr

Box-Cox Transformation
chm_chablais3

Canopy height model (Chablais 3 plot)
points2DSM

Digital Surface Model
maxima_detection

Local maxima extraction on image
plot_tree_inventory

Displays a map of tree inventory data
gap_detection

Gap detection in a Canopy Height Model
clouds_metrics

Computes metrics on list of point clouds
height_regression

Regression of detected heights VS reference heights
hist_detection

Histogram of detection
create_disk

Disk-shaped matrix mask
raster_xy_mask

Raster mask by union of buffers around xy positions
ellipses4Crown

Create elliptical polygons from centres and extensions in four directions
polar2Projected

Polar to cartesian coordinates conversion
raster_local_max

Statistics of raster local maximum
quatre_montagnes

Field plot inventory in the Quatre Montagnes area (France)
pointList2poly

Convert a list of points into spatial polygons object
dem_filtering

Image pre-processing (non-linear filtering and Gaussian smoothing)
raster_zonal_stats

Image statistic in segment
circle2Raster

Raster corresponding to circle extent
plot_matched

Plot of matched pairs of detected and reference trees
hist_stack

Stacked histogram
maxima_selection

Image maxima selection based on values and neighborhood of local maxima
las_chablais3

las data in France (Chablais 3 plot)
raster_metrics

Computes metrics by aggregating a raster at lower resolution or summarizing attributes based on XY locations
terrain_points_metrics

Computation of terrain metrics
rasters2Cor

Correlation between two rasters
edge_detection

Edge detection in gap image
raster_chull_mask

Raster mask of convex hull
raster2Cimg

SpatRaster to Cimg conversion
species_color

Table of species names, abreviations and display colors
std_tree_metrics

Computation of tree metrics
rasters_moving_cor

Correlation between rasters for different XY translations
seg_adjust

Modification of segments based on values
tree_extraction

Tree extraction
tree_matching

3D matching of detected tree top positions with reference positions
segmentation

Image segmentation by seed-based watershed algorithm
tree_inventory_chablais3

Tree inventory data in France (Chablais 3 plot, July 2010)
tree_detection

Tree detection
tree_segmentation

Preprocessing and segmentation of raster image for tree identification
aba_build_model

Calibrates and validates area-based models
aba_predict

Mapping of ABA prediction models
boxcox_itr

Inverse Box-Cox transformation
boxcox_itr_bias_cor

Inverse Box-Cox transformation with bias correction
add_vegetation_indices

Add vegetation indices on a IRC image
aba_combine_strata

Combines a list of ABA models into a single ABA model object
aba_plot

Plots observed VS values predicted in leave one out cross validation of an aba_build_model
aa_las_chablais3

Load las_chablais3
aba_metrics

Function for area-based metrics computation
aba_inference

computes inference from area-based model and predicted values
clean_raster

Applies thresholds and mask to a raster object
cimg2Raster

Cimg to SpatRaster conversion