# NOT RUN {
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
las <- readLAS(LASfile)
d <- grid_density(las, 5)
plot(d)
d <- grid_density(las, 10)
plot(d)
las <- laspulse(las)
d <- grid_density(las)
plot(d)
# }
Run the code above in your browser using DataLab