| plot_tree_inventory | R Documentation | 
displays tree inventory data
plot_tree_inventory(xy, height = NULL, diam = NULL, species = NULL, ...)
| 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  | 
| ... | Arguments to be passed to methods, as in  | 
no return
species_color for a table of species and associated colors
# 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
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.