
Last chance! 50% off unlimited learning
Sale ends in
This function implements a 3D plot method for 'lasmetrics3d' objects
# S3 method for lasmetrics3d
plot(x, y, color = "Z", colorPalette = height.colors,
bg = "black", trim = 1, ...)
An object of the class 'lasmetrics3d'
Unused (inherited from R base)
characters. The field used to color the points. Default is Z coordinates. Or a vector of colors.
characters. A color palette name. Default is height.colors
provided by the package lidR
The color for the background. Default is black.
numeric. Enables trimming of values when outliers break the color palette range. Default is 1 meaning that the whole range of the values is used for the color palette. 0.9 means that 10 In this case the values higher than the 90th percentile are set to the highest color. They are not removed
Supplementary parameters for points3d if display method is "points"
grid_metrics3d points3d height.colors forest.colors heat.colors colorRampPalette
# NOT RUN {
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
lidar = readLAS(LASfile)
voxels = grid_metrics3d(lidar, list(Imean = mean(Intensity)))
plot(voxels, color = "Imean", colorPalette = heat.colors, trim=0.99)
# }
Run the code above in your browser using DataLab