Description Usage Arguments Note Examples
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.
1 | gg_partial_plot(x, vars)
|
x |
The GBM model to be used |
vars |
The variables used in the GBM model, this is a character vector |
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")
1 | important_vars <- c("LF", "sys", "dias", "crs", "bmi")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.