plot_target()
can be used with a target_inv
dataset or the output
of the compete_inv
function to inspect the spatial positions of the
target trees.
Arguments
- inv
object of class
compete_inv
ortarget_inv
.- radius
numeric of length 1, Search radius (in m) around target tree wherein all neighboring trees are classified as competitors. Only needed for
target_inv
objects in methods that are not radius dependent (i.e., in cases wheretarget_source
defined by a character or logical vector or in cases wheretarget_source = "all_trees"
).
Details
The function creates a plot of the trees in the forest inventory
dataset where the target trees and the surrounding search radii are
highlighted. If they were created with target_source = "buff_edge"
or
target_source = "exclude_edge"
, the estimated plot margin (and, in case
of "buff_edge"
, also the buffer to the margin) are added as a polygon.
This function is meant as a visual inspection tool for checking the validity of the choice of target trees.
See also
read_inv()
to read forest inventory data,
define_target()
for designating target trees,
compete_inv()
for computing tree competition from inventory data,
competition_indices for a list of available indices. For visualized examples,
see competition inventory
Examples
if (FALSE) { # \dontrun{
# read inventory dataset
inv <- read_inv("data/inventory.csv")
# lot neighborhood for 'target_inv' object
target <- target_inv(
inv, target_source = c("Tree 1", "Tree 2", "Tree 7"))
plot_target(target, radius = 10)
# plot neighborhood for 'compete_inv' object
comp <- compete_inv(inv, "buff_edge", radius = 10)
plot_target(comp)
} # }