## mtcars data
## Load the stored randomForestSRC object for mtcars
load(mtcars_rf, package="ggRandomForests)
# Save the "wt" and "hp" partial plot data
mtcars_prtl <- plot.variable(mtcars_rf,
xvar.names = c("wt", "hp"),
partial=TRUE, show.plots=FALSE)
# Generate a ggRandomForests plot.
gg_dta <- gg_partial(mtcars_prtl)
plot(gg_dta)
Run the code above in your browser using DataLab