get_plots_cbh_bp {LadderFuelsR} | R Documentation |
This function plots the crown base height (CBH) based on breaking point over the cummulative LAD values and gives the LAD percentage of the canopy layer
get_plots_cbh_bp(LAD_profiles, cummulative_LAD, min_height = 1.5)
LAD_profiles |
original tree Leaf Area Density (LAD) profile (output of [lad.profile()] function from leafR package). An object of the class text. |
cummulative_LAD |
tree metrics derived from using breaking points on cummulative LAD (output of [get_cum_break()] function). An object of the class text. |
min_height |
Numeric value for the actual minimum base height (in meters). |
A plot of the Crown Base Height (CBH) based on the breaking point method and Leaf Area Density (LAD) percentage of the canopy layer.
Olga Viedma, Carlos Silva, JM Moreno and A.T. Hudak
library(ggplot2)
library(dplyr)
# LAD profiles derived from normalized ALS data after applying [lad.profile()] function
LAD_profiles <- read.table(system.file("extdata", "LAD_profiles.txt", package = "LadderFuelsR"),
header = TRUE)
LAD_profiles$treeID <- factor(LAD_profiles$treeID)
# Before running this example, make sure to run get_cum_break().
if (interactive()) {
cummulative_LAD <- get_cum_break()
LadderFuelsR::cummulative_LAD$treeID <- factor(LadderFuelsR::cummulative_LAD$treeID)
# Generate cumulative LAD plots
plots_cbh_bp <- get_plots_cbh_bp(LAD_profiles, cummulative_LAD,min_height = 1.5)
}