Plot a LAS* object
Plot displays a 3D interactive windows-based on rgl for LAS objects
Plot displays an interactive view for LAScatalog objects with pan and
zoom capabilities based on mapview. If the coordinate reference
system (CRS) of the LAScatalog
is non empty, the plot can be displayed on top of base maps
(satellite data, elevation, street, and so on).
Plot displays a LASheader object exactly like it displays a LAScatalog
object.
plot(x, y, ...) ## S4 method for signature 'LAS,missing' plot( x, y, color = "Z", colorPalette = "auto", bg = "black", trim = Inf, backend = "rgl", clear_artifacts = TRUE, nbits = 16, axis = FALSE, legend = FALSE, add = FALSE, ... ) ## S4 method for signature 'LAScatalog,missing' plot(x, y, mapview = FALSE, chunk_pattern = FALSE, overlaps = FALSE, ...) ## S4 method for signature 'LASheader,missing' plot(x, y, mapview = FALSE, ...)
x |
A |
y |
Unused (inherited from R base) |
... |
Will be passed to points3d (LAS) or plot
if |
color |
characters. The attribute used to color the point cloud. Default is Z coordinates. RGB is an allowed string even if it refers to three attributes simultaneously. |
colorPalette |
characters. A vector of colors such as that generated by heat.colors,
topo.colors, terrain.colors or similar functions. Default is |
bg |
The color for the background. Default is black. |
trim |
numeric. Enables trimming of values when outliers break the color palette range.
Every point with a value higher than |
backend |
character. Can be |
clear_artifacts |
logical. It is a known and documented issue that the 3D visualisation with
|
nbits |
integer. If |
axis |
logical. Display axis on XYZ coordinates. |
legend |
logical. Display a gradient color legend. |
add |
If |
mapview |
logical. If |
chunk_pattern |
logical. Display the current chunk pattern used to process the catalog. |
overlaps |
logical. Highlight the overlaps between files. |
LASfile <- system.file("extdata", "MixedConifer.laz", package="lidR") las <- readLAS(LASfile) plot(las) plot(las, color = "Intensity") ## Not run: # If outliers break the color range, use the trim parameter plot(las, color = "Intensity", trim = 150) plot(las, color = "Classification") # This dataset is already tree segmented plot(las, color = "treeID") ## End(Not run) # single file LAScatalog using data provided in lidR ctg = readLAScatalog(LASfile) plot(ctg)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.