aba_plot: Plots observed VS values predicted in leave one out cross...

View source: R/aba.R

aba_plotR Documentation

Plots observed VS values predicted in leave one out cross validation of an aba_build_model

Description

Plots observed VS values predicted in leave one out cross validation of an aba_build_model

Usage

aba_plot(aba_model, disp_text = F, col = NULL, add_legend = NULL, ...)

Arguments

aba_model

list. as returned by aba_build_model

disp_text

boolean. indicates if points should be labeled with id

col

color to be passed to plot, default is black for single models, depends on stratum in stratified models

add_legend

list. parameters to be passed to legend. In case of a stratified model, legend is automatically set up.

...

other parameters to be passed to plot, xlab and ylab are automatically added

Value

nothing

Examples

# load Quatre Montagnes dataset
data(quatre_montagnes)
# build ABA model for basal area, with three metrics as predictors
model_aba <- aba_build_model(quatre_montagnes$G_m2_ha,
                             quatre_montagnes[, c("zpcum8", "ipcumzq70", "p_hmin")],
  transform = "log", nmax = 2
)

# plot field values VS predictions in cross-validation
aba_plot(model_aba, main = "Basal area")

lidaRtRee documentation built on April 3, 2025, 10:29 p.m.