Learn R Programming

TreeLS (version 1.0)

tlsPlot: Plot TLS outputs

Description

Plot the LAS outputs of tls functions on the same scene using rgl. Check ?stemSegmentation for usage examples.

Usage

tlsPlot(las, sgmt = NULL, map = NULL, treeID = NULL,
  sgmtColor = "yellow")

Arguments

las

LAS object - ideally an output from stemPoints.

sgmt

optional data.table - output from stemSegmentation.

map

optional LAS object - output from treeMap.

treeID

optional numeric - single TreeID to extract from las.

sgmtColor

optional - color of the plotted stem segment representations.

Examples

Run this code
# NOT RUN {
### single tree
file = system.file("extdata", "spruce.laz", package="TreeLS")
tls = readTLS(file)
tls = stemPoints(tls)
df = stemSegmentation(tls)

tlsPlot(tls, df)

### For further examples check:
?stemSegmentation
# }

Run the code above in your browser using DataLab