size_dist: Plot size class distributions

View source: R/size_dist.R

size_distR Documentation

Plot size class distributions

Description

Creates tree size class distribution plots for one or more stands.

Usage

size_dist(size_data, stands, bin_size = 10)

Arguments

size_data

Data frame containing size information of trees. Must include the columns: tree_id, stand_id, dbh, and year (i.e. year in which size measurement was taken).

stands

Character vector of names of stands for which size class distributions are desired. To maintain plot clarity it is recommended that 10 stands or fewer are specified.

bin_size

Integer representing desired width of size classes. Default is 10 dbh units.

Details

The user-provided data frame size_data can contain trees from an unlimited number of stands but it is recommended that no more that 10 stands be specified in the stands argument to maintain resolution in the resulting multi-panel plot. If size_data contains multiple size measurements for a single tree, the tree_id and year columns will be used to select the most recent size measurement for plotting.

Value

A single plot containing a panel for each of the specified stands.

Examples

# Single stand
size_dist(size_data = tree, stands = "AB08", bin_size = 5)

# Multiple stands
size_dist(size_data = tree, stands = c("AM16", "AO03", "AR07"))

sgraham9319/ForestPlotR documentation built on April 15, 2022, 4:01 p.m.