plot_tree_inventory {lidaRtRee}R Documentation

Displays a map of tree inventory data

Description

displays tree inventory data

Usage

plot_tree_inventory(xy, height = NULL, diam = NULL, species = NULL, ...)

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_color for display with corresponding color

...

Arguments to be passed to methods, as in plot

Value

no return

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
)

[Package lidaRtRee version 4.0.5 Index]