TreeLS (version 1.0)

treePositions: Get unique tree positions from a tree_map

Description

Extracts the tree XY positions from a tree_map LAS object

Usage

treePositions(las, plot = T)

Arguments

las

LAS object - output from treeMap.

plot

logical - plot the tree map?

Value

data.table of tree IDs and XY coordinates with tree_map_dt signature.

Examples

Run this code
# NOT RUN {
file = system.file("extdata", "model_boles.laz", package="TreeLS")
tls = readTLS(file)
plot(tls)

## build a 3D map of tree occurrences
map = treeMap(tls)
plot(map, color='Radii')

## get a 2D representation of the tree map
xymap = treePositions(map)
head(xymap)
# }

Run the code above in your browser using DataLab