Displays a map of tree inventory data
plot_tree_inventory.Rddisplays tree inventory data
Arguments
- xy
data.frame with X, Y coordinates of tree centers in two columns
- height
vector. tree heights in meters
- diam
vector. tree diameters in centimeters
- species
vector. species abbreviation as in
species_colorfor display with corresponding color- ...
Arguments to be passed to methods, as in
plot
See also
species_color for a table of species and associated colors
Examples
# load tree inventory data from plot Chablais 3
data("tree_inventory_chablais3")
# display tree inventory
plot_tree_inventory(tree_inventory_chablais3[, c("x", "y")],
diam = tree_inventory_chablais3$d, col = "red",
pch = tree_inventory_chablais3$e,
xlab = "X", ylab = "Y"
)
# display tree inventory with CHM background
data("chm_chablais3")
chm_chablais3 <- terra::rast(chm_chablais3)
terra::plot(chm_chablais3, col = gray(seq(0, 1, 1 / 255)))
plot_tree_inventory(tree_inventory_chablais3[, c("x", "y")],
height = tree_inventory_chablais3$h,
species = tree_inventory_chablais3$s,
add = TRUE
)