taper_diagnostic_plot: Diagnostic Plot of Tree Taper

View source: R/diagnostics.R

taper_diagnostic_plotR Documentation

Diagnostic Plot of Tree Taper

Description

Generates a diagnostic plot showing the fitted taper of a tree using the Kozak model. This is a simple wrapper around 'fit_taper_Kozak()' to extract its plot output.

Usage

taper_diagnostic_plot(qsm, dbh)

Arguments

qsm

A QSM object (e.g., data frame returned by 'run_treeqsm()') containing cylinder information.

dbh

Numeric. Diameter at breast height of the tree, used as input to the taper function.

Details

The function calls 'fit_taper_Kozak()' with 'plot = FALSE' and returns the plot component. This allows quick visualization of the taper without modifying the underlying QSM.

Value

A 'ggplot' object showing the fitted taper along the tree stem.

Examples

path = system.file('extdata', 'tree_0744_qsm.txt', package='tReeTraits')
qsm = load_qsm(path)
taper_diagnostic_plot(qsm, dbh = 0.25)

tReeTraits documentation built on Feb. 26, 2026, 1:07 a.m.