Description Usage Arguments Details Value
Produce a bar ggplot of variable importance for random forest model.
1 |
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. |
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.
ggplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.