View source: R/plot_regression.R
plot.regression | R Documentation |
Function plot.regression plots measure of quality of regression models.
## S3 method for class 'regression'
plot(x, models = NULL, type = "residuals", metric = "rmse", ...)
x |
An object, returned from |
models |
A character or numeric that indicates which models will be presented. If 'NULL' (the default option) then the three best models will be presented. |
type |
A character one of 'residuals'/'train-test-observed-predicted'/'train-test-rmse' indicates the type of chart. |
metric |
A character one of 'rmse'/'mse'/'r2'/'mae' indicates the metric on the plots. |
... |
Other parameters that are necessary for consistency with generic plot function. |
a ggplot2 object
## Not run:
library('forester')
data('lisbon')
x <- train(lisbon, 'Price', bayes_iter = 0, random_evals = 0)
plot(x)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.