Learn R Programming

lidR (version 1.2.1)

plot.lashexametrics: Plot an object of class lashexametrics in 2D

Description

This functions implements a plot method for lashexametrics data.table

Usage

# S3 method for lashexametrics
plot(x, z = NULL, colorPalette = height.colors(50),
  ...)

Arguments

x

A data.table of class lashexametrics.

z

character. The field to plot. If NULL, autodetect.

colorPalette

characters. A list of colors such as that generated by heat.colors, topo.colors, terrain.colors or similar functions. Default is height.colors(50) provided by the package lidR

...

inherited from base

See Also

grid_metrics heat.colors

Examples

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

# Max Z within
grid_hexametrics(lidar, max(Z), 5) %>% plot
# }

Run the code above in your browser using DataLab