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, classify data from shapefiles, and provides other tools to manipulate LiDAR data. The lidR package is designed mainly for research purposes using an area-based approach.

lidR provides an open-source and R-based implementation of several classical functions used in software dedicated to LiDAR data manipulation. lidR is flexible because it allows the user to program their own tools and manipulate their own objects in R rather than rely on a set of predefined tools.

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

  1. Features
  2. Install lidR from github
  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

4,376

Version

1.1.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Jean-Romain Roussel

Last Published

June 2nd, 2025

Functions in lidR (1.1.0)

as.raster.lasmetrics

Transform a lasmetrics object into a spatial RasterLayer object
as.SpatialPointsDataFrame

Transform a LAS object into a SpatialPointsDataFrame object
$,LAS-method

Extract parts of a LAS object
as.lasmetrics

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

Extract LiDAR data based on a set of coordinates
catalog_apply

Apply a function to a set of tiles using several cores.
catalog

Build a catalog of las tiles/files
catalog_index

Retrieve the tiles containing ROIs
grid_metrics

Rasterize the space and compute metrics for each cell
grid_density

Pulse density surface model
gap_fraction_profile

Gap fraction profile
grid_canopy

Canopy surface model
entropy

Normalized Shannon diversity index
extent,LAS-method

Extent
LAD

Leaf area density
grid_metrics3d

Voxelize the space and compute metrics for each voxel
-,LAS,RasterLayer-method

Convenient operator to lasnormalize
LAS

Create a LAS object
lasdecimate

Thin LiDAR data
lasmetrics

Compute metrics for a cloud of points
lasfilter

Return points with matching conditions
LASheader

Create a LASheader object
lasclip

Clip LiDAR points
lascolor

Compute the color from RGB fields
lasfilters

Predefined filters
lasflightline

Retrieve individual flightlines
lasarea

Compute the area covered by of a set a points.
lasclassify

Classify LiDAR points from source data
lasroi

Select a region of interest interactively
lasscanline

Retrieve individual scanline
plot.lasmetrics

Plot an object of class lasmetrics in 2D
plot.LAS

Plot LiDAR data
laspulse

Retrieve individual pulses
plot.Catalog

Plot a Catalog object
lasnormalize

Subtract digital terrain model
plot.lasmetrics3d

Plot voxelized LiDAR data
lidR-deprecated

Deprecated function(s) in the lidR package
lidrpalettes

Palettes
set.colors

Automatic colorization
stdmetrics

Predefined standard metrics function
plot3d

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

Summary of LAS data
VCI

Vertical Complexity Index
writeLAS

Write a las or laz file
readLAS

Read .las or .laz files
catalog_select

Select LAS files interactively
as.SpatialPixelsDataFrame

Transform a 'lasmetrics' object into a SpatialPixelsDataFrame object
grid_terrain

Digital Terrain Model
LAS-class

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

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

Individual tree segmentation