View source: R/metrics_interval.R
metrics_interval | R Documentation |
Percentage of points calculated for a set of horizontal layers.
metrics_interval(z, zintervals = c(0, 0.15, 2, 5, 10, 20, 30), zmin = NA)
.metrics_interval
z |
Z coordinate of the point cloud (point heights) |
zintervals |
Numeric. Height intervals |
zmin |
numeric. Minimum |
An object of class formula
of length 2.
A list. Percentage of points within each height interval
library(lidR)
library(lidRmetrics)
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
las <- readLAS(LASfile, select = "*", filter = "-keep_random_fraction 0.5")
m1 <- cloud_metrics(las, ~metrics_interval(z = Z))
m2 <- pixel_metrics(las, ~metrics_interval(z = Z, zintervals = c(0, 5, 10)), res = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.