plot_matched | R Documentation |
Plot of matched pairs of detected and reference trees
plot_matched(lr, ld, matched, chm = NULL, plot_border = NULL, ...)
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 |
chm |
raster object. raster for background display |
plot_border |
sf or SpatVector object. plot boundaries for display |
... |
Additional arguments to be used by |
no return
tree_matching
, hist_detection
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.