Skip to contents

Forest Objects

Extract and display data from random forest objects.

gg_rfsrc(<rfsrc>)
Predicted response data object
plot(<gg_rfsrc>)
Predicted response plot from a gg_rfsrc object.

Training Error

Visualize forest convergence and training error.

gg_error()
Random forest error trajectory data object
plot(<gg_error>)
Plot a gg_error object

Variable Importance

Assess and plot variable importance (VIMP).

gg_vimp()
Variable Importance (VIMP) data object
plot(<gg_vimp>)
Plot a gg_vimp object, extracted variable importance of a rfsrc object

Variable Dependence

Marginal variable dependence plots.

gg_variable()
Marginal variable dependence data object.
plot(<gg_variable>)
Plot a gg_variable object,

Partial Dependence

Partial dependence plots for individual variables.

gg_partial()
Split partial dependence data into continuous or categorical datasets
plot(<gg_partial>)
Plot a gg_partial object
gg_partial_rfsrc()
Partial dependence data from an rfsrc model
plot(<gg_partial_rfsrc>)
Plot a gg_partial_rfsrc object
gg_partialpro()
Split varpro partial dependence data into continuous or categorical datasets
plot(<gg_partialpro>)
Plot a gg_partialpro object

Survival Analysis

Survival curves, ROC, and related diagnostics.

gg_survival()
Nonparametric survival estimates.
plot(<gg_survival>)
Plot a gg_survival object.
gg_roc(<rfsrc>)
ROC (Receiver Operating Characteristic) curve data from a classification forest.
plot(<gg_roc>)
ROC plot generic function for a gg_roc object.
calc_roc(<rfsrc>)
Receiver Operator Characteristic calculator
calc_auc()
Area Under the ROC Curve calculator
surv_partial.rfsrc()
Survival partial dependence data for one or more predictors
kaplan()
nonparametric Kaplan-Meier estimates
nelson()
nonparametric Nelson-Aalen estimates

Utilities

Helper functions used internally and by users.

quantile_pts()
Quantile-based cut points for coplots
varpro_feature_names()
Recover original variable names from varpro one-hot encoded feature names

Package

ggRandomForests-package
ggRandomForests: Visually Exploring Random Forests