gg_partial_plot: gg_partial_plot

Description Usage Arguments Note Examples

Description

Uses the "get_partial_dependence" function to plot partial dependence. As always, future work will be into finding a way to generalize these methods to RPART, BRT, and RF models, as an S3 method. This code is customised to what I do, so this isn't really meant to be a super flexible way to write code, so I would recommend that people who want to plot their own partial plots just use the 'get_partial_dependence' values and go from there.

Usage

1
gg_partial_plot(x, vars)

Arguments

x

The GBM model to be used

vars

The variables used in the GBM model, this is a character vector

Note

code can then be customised to add in extra "boundaries", as it were geom_hline(aes(yintercept = 3.729), colour = "orange") + geom_hline(aes(yintercept = 12.675), colour = "green")

Examples

1
  important_vars <- c("LF", "sys", "dias", "crs", "bmi")

njtierney/neato documentation built on May 23, 2019, 8:22 p.m.