View source: R/plot_light_global_surrogate.R
plot.light_global_surrogate | R Documentation |
Use rpart.plot::rpart.plot()
to visualize trees fitted by
light_global_surrogate()
.
## S3 method for class 'light_global_surrogate'
plot(x, type = 5, auto_main = TRUE, mfrow = NULL, ...)
x |
An object of class "light_global_surrogate". |
type |
Plot type, see help of |
auto_main |
Automatic plot titles (only if multiple trees are shown). |
mfrow |
If multiple trees are shown in the same figure:
what value of |
... |
Further arguments passed to |
An object of class "ggplot".
light_global_surrogate()
fit <- lm(Sepal.Length ~ ., data = iris)
x <- flashlight(model = fit, label = "lm", data = iris)
plot(light_global_surrogate(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.