View source: R/flightline_functions.R
plot_flightline_points | R Documentation |
Displays a random sample of points from a LAS object, coloured by flight line ID and facetted by point class. This is useful, for example, when diagnosing problems with overlapping flightlines or uneven point density.
plot_flightline_points(
las,
classes = c(2, 35),
npts = 5000,
shape = 16,
size = 1
)
las |
A LAS object, e.g. imported using |
classes |
An integer vector specifying the point classes to display. May include 2 (ground), 3 (low veg), 4 (mid veg), 5 (high veg), 35 (all veg - the three vegetation classes combined), 6 (buildings) and 9 (water). The default is to display ground (2) and all vegetation combined (35). |
npts |
Number of points to sample from the LAS data for drawing.
Sampling is done proportionally across combinations of point classes and
flight lines, and the resulting number of rows in the |
shape |
Point shape, specified as an integer code as for gpplot and R base plot. |
size |
Point size. |
A ggplot object.
get_flightline_polygons
## Not run:
# Default plot of points for ground (class 2) and combined
# vegetation (classes 3-5).
plot_flightline_points(las)
# Display the vegetation classes both separately and combined
plot_flightline_points(las, classes = c(3:5, 35))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.