plot_matched {lidaRtRee}R Documentation

Plot of matched pairs of detected and reference trees

Description

Plot of matched pairs of detected and reference trees

Usage

plot_matched(lr, ld, matched, chm = NULL, plot_border = NULL, ...)

Arguments

lr

data.frame or matrix. 3D coordinates (X Y Height) of reference positions

ld

data.frame or matrix. 3D coordinates (X Y Height) of detected positions

matched

data.frame. contains pair indices, typically returned by tree_matching

chm

raster object. raster for background display

plot_border

sf or SpatVector object. plot boundaries for display

...

Additional arguments to be used by plot

Value

no return

See Also

tree_matching, hist_detection

Examples

# create reference and detected trees
ref_trees <- cbind(c(1, 4, 3, 4, 2), c(1, 1.5, 2, 3, 4), c(15, 18, 20, 10, 11))
def_trees <- cbind(c(2, 2, 4, 4), c(1, 3, 4, 1), c(16, 19, 9, 15))
#
# compute matching
match1 <- tree_matching(ref_trees, def_trees)
match2 <- tree_matching(ref_trees, def_trees, delta_ground = 2, h_prec = 0)

# 2D display of matching results
plot_matched(ref_trees, def_trees, match1, xlab = "X", ylab = "Y")
plot_matched(ref_trees, def_trees, match2, xlab = "X", ylab = "Y")

[Package lidaRtRee version 4.0.5 Index]