Learn R Programming

lidR (version 1.2.1)

grid_density: Pulse density surface model

Description

Creates a pulse density map using a LiDAR cloud of points. This function is an alias for grid_metrics(obj, f, res with f = length(unique(pulseID))/res^2)

Usage

grid_density(.las, res = 4)

Arguments

.las

An object of class LAS

res

numeric. The size of a grid cell in LiDAR data coordinates units. Default is 4 = 16 square meters.

Value

It returns a data.table of the class lasmetrics which enables easier plotting and RasterLayer casting.

See Also

grid_metrics

Other grid_alias: grid_canopy

Examples

Run this code
# NOT RUN {
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
lidar = readLAS(LASfile)

lidar %>% grid_density(5) %>% plot
lidar %>% grid_density(10) %>% plot
# }

Run the code above in your browser using DataLab