aba_plot {lidaRtRee}R 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 all metrics as predictors
model_aba <- aba_build_model(quatre_montagnes$G_m2_ha, quatre_montagnes[, 9:76],
  transform = "boxcox", nmax = 3
)

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

[Package lidaRtRee version 4.0.5 Index]