Learn R Programming

⚠️There's a newer version (4.2.1) of this package.Take me there.

R package for Airborne LiDAR Data Manipulation and Visualization for Forestry Applications

The lidR package provides functions to read and write .las and .laz files, plot a point cloud, compute metrics using an area-based approach, compute digital canopy models, thin lidar data, manage a catalog of datasets, automatically extract ground inventories, process a set of tiles in multicore, individual tree segmentation, classify data from geographic data, and provides other tools to manipulate LiDAR data.

Development of the lidR package between 2015 and 2017 was made possible thanks to the financial support of the AWARE project (NSERC CRDPJ 462973-14); grantee Prof Nicholas Coops.

Please contact the author for bug reports or feature requests (on github, preferably). I enjoy implementing new features!

  1. Features
  2. Install lidR
  3. Some examples
  4. Changelog

Features (not exhaustive)

Install lidR

  • The latest released version from CRAN with
install.packages("lidR")
  • The latest development version from github with
devtools::install_github("Jean-Romain/rlas", dependencies=TRUE)
devtools::install_github("Jean-Romain/lidR", dependencies=TRUE)

To install the package from github make sure you have a working development environment.

  • Windows: Install Rtools.exe.
  • Mac: Install Xcode from the Mac App Store.
  • Linux: Install the R development package, usually called r-devel or r-base-dev

Some examples

Changelog

See changelogs on NEW.md

Copy Link

Version

Install

install.packages('lidR')

Monthly Downloads

5,021

Version

1.4.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Jean-Romain Roussel

Last Published

June 2nd, 2025

Functions in lidR (1.4.0)

LAScatalog-class

An S4 class to represent a set of a .las or .laz files
LAScluster-class

An S4 class to represent an arbirary region in the catalog.
LAD

Leaf area density
-,LAS,RasterLayer-method

Convenient operator to lasnormalize
catalog_reshape

Reshape (retile) a catalog
catalog_select

Select LAS files interactively
grid_metrics

Rasterize the space and compute metrics for each cell
grid_metrics3d

Voxelize the space and compute metrics for each voxel
lasflightline

Retrieve individual flightlines
lasground

Classify points as ground or not ground
LASheader-class

An S4 class to represent the header read in a .las or .laz file
LASheader

Create a LASheader object
as.lasmetrics

Set the class 'lasmetrics' to a data.frame or a data.table
as.raster.lasmetrics

Transform a lasmetrics object into a spatial RasterLayer object
grid_density

Map the pulse or point density
grid_hexametrics

Compute metrics for hexagonal cells
lasfilter

Return points with matching conditions
lasfilters

Predefined filters
lastrees

Individual tree segmentation
lidR-deprecated

Deprecated function(s) in the lidR package
lidr_options

Options Settings for the lidR package
lidrpalettes

Palettes
plot.lasmetrics3d

Plot voxelized LiDAR data
plot3d

Plot a wireframe of a RasterLayer or a lasmetrics object
summary.LAS

LiDAR data summary
tree_detection

Tree top detection based on local maxima filters
tree_metrics

Compute metrics for each tree
writeLAS

Write a las or laz file
catalog_options

catalog_queries

Extract LiDAR data based on a set of coordinates
gap_fraction_profile

Gap fraction profile
grid_canopy

Canopy surface model
lasclassify

Classify LiDAR points from source data
lasclip

Clip LiDAR points
plot.lashexametrics

Plot an object of class lashexametrics in 2D
util_makeZhangParam

Parameters for progressive morphological filter
entropy

Normalized Shannon diversity index
extent,LAS-method

Extent
lasmetrics

Compute metrics for a cloud of points
lasnormalize

Subtract digital terrain model
lasscanline

Retrieve individual scanline
lassnags

Snag classification
VCI

Vertical Complexity Index
area

Surface covered by a LAS object or by a LAScatalog.
as.spatial

Transform a lidR object into sp object
catalog

Build a catalog of las tiles/files
lascolor

Compute the color from RGB fields
lasdecimate

Thin LiDAR data
laspulse

Retrieve individual pulses
lasroi

Select a region of interest interactively
set.colors

Automatic colorization
stdmetrics

Predefined standard metrics functions
readLAS

Read .las or .laz files
rumple_index

Rumple index of roughness
plot.lasmetrics

Plot an object of class lasmetrics in 2D
LAS-class

An S4 class to represent the data read in a .las or .laz file
LAS

Create a LAS object
catalog_apply

Apply a user-defined function to an entire catalog in a continuous way
catalog_index

Retrieve the files containing ROIs
grid_terrain

Digital Terrain Model
grid_tincanopy

Canopy height model based on a triangulation.
plot.LAS

Plot LiDAR data
plot.LAScatalog

Plot a LAScatalog object