ggvimp: Plot of variable importance

Description Usage Arguments Details Value

Description

Produce a bar ggplot of variable importance for random forest model.

Usage

1
ggvimp(in_rftuned, in_predvars, varnum = 10, spatial_rsp = FALSE)

Arguments

in_rftuned

Output from selecttrain_rf; list containing inner and outer resampling results + task.

in_predvars

data.table of predictor variable codes, names and attributes. Output from selectformat_predvars.

varnum

number of variables whose variable importance to plot.

spatial_rsp

(boolean) whether to use variable importance values derived from spatial (TRUE) or non-spatial (FALSE) cross-validation.

Details

this function is used to produce Figure 2 in the Main Text of Messager et al. 2021. Additional formatting is needed to exactly match Fig. 2.

Value

ggplot


NaiaraLopezRojo/globalIRmap documentation built on Dec. 17, 2021, 5:19 a.m.