plot_tree_plot_area: Plot Tree Plot Area

View source: R/plot_tree_plot_area.R

plot_tree_plot_areaR Documentation

Plot Tree Plot Area

Description

Visualize a corner, its boundaries and tree plot areas.

Usage

plot_tree_plot_area(
  angle_counts,
  boundaries,
  tnr,
  enr,
  bnr = NULL,
  frame_factor = 1,
  use_sub = NULL,
  counting_factor = 4
)

Arguments

angle_counts

A data.frame containing angle counts. It has to have columns named by the contents of either
get_defaults()[["angle_counts"]] or
getOption("treePlotArea")[["angle_counts"]].
Could be bw2bwi2022de(get(data("trees", package = "treePlotArea")))).

boundaries

A data.frame containing boundaries. It has to have columns named by the contents of either
get_defaults()[["boundaries"]] or
getOption("treePlotArea")[["boundaries"]].
Could be get(data("boundaries", package = "treePlotArea")) or the output of get_boundary_polygons.

tnr

Number of the tract.

enr

Number of the tract's corner.

bnr

If given, the number of a corner's tree.

frame_factor

Plotting from as a factor of the tree plot area. Stick with the default.

use_sub

Deprecated.

counting_factor

The basal area factor used in counting the trees. For tally trees in the German national forest inventory its value is 4 [m^2].

Value

A list with the corrections factors for the plot's trees' plot areas, the plot's trees and the plot's boundaries.

Examples

tnr <- 166
enr <- 2
bnr <- 7
angle_counts <- bw2bwi2022de(get(data("trees", package = "treePlotArea")))
boundaries <- get(data("boundaries", package = "treePlotArea"))
plot_tree_plot_area(angle_counts = angle_counts,
                    boundaries = boundaries,
                    tnr =  tnr, enr = enr, bnr = bnr, frame_factor = 4)
plot_tree_plot_area(angle_counts = angle_counts,
                    boundaries = boundaries,
                    tnr =  tnr, enr = enr, frame_factor = 1)
tnr <- 9823
enr <- 1
bnr <- 2
plot_tree_plot_area(angle_counts = angle_counts,
                    boundaries = boundaries,
                    tnr =  tnr, enr = enr, bnr = bnr, frame_factor = 4)
plot_tree_plot_area(angle_counts = angle_counts,
                    boundaries = boundaries,
                    tnr =  tnr, enr = enr, frame_factor = 1)

treePlotArea documentation built on Nov. 26, 2025, 1:07 a.m.