Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.lasmetrics3d

Plot voxelized LiDAR data


Description

This function implements a 3D plot method for 'lasmetrics3d' objects

Usage

## S3 method for class 'lasmetrics3d'
plot(
  x,
  y,
  color = "Z",
  colorPalette = height.colors(50),
  bg = "black",
  trim = Inf,
  ...
)

Arguments

x

An object of the class 'lasmetrics3d'

y

Unused (inherited from R base)

color

characters. The field used to color the points. Default is Z coordinates. Or a vector of colors.

colorPalette

characters. A color palette name. Default is height.colors provided by the package lidR

bg

The color for the background. Default is black.

trim

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 the display method is "points".

Examples

LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
lidar = readLAS(LASfile)

voxels = voxel_metrics(lidar, list(Imean = mean(Intensity)), res = 5)
plot(voxels, color = "Imean", colorPalette = heat.colors(50), trim=60)

lidR

Airborne LiDAR Data Manipulation and Visualization for Forestry Applications

v3.1.2
GPL-3
Authors
Jean-Romain Roussel [aut, cre, cph], David Auty [aut, ctb] (Reviews the documentation), Florian De Boissieu [ctb] (Fixed bugs and improved catalog features), Andrew Sánchez Meador [ctb] (Implemented wing2015() for segment_snags()), Bourdon Jean-François [ctb] (Contributed to Roussel2020() for track_sensor()), Gatziolis Demetrios [ctb] (Implemented Gatziolis2019() for track_sensor())
Initial release
2021-03-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.