View source: R/regression_diag_plots.R
plot_numeric_obs_pred | R Documentation |
This function plots the predicted values against the observed values based on tidymodels results for a regression model.
plot_numeric_obs_pred(dat, y_name, alpha = 1, size = 1, source = NULL)
dat |
The predictions data frame in the |
y_name |
The y/response variable for the model. |
alpha |
The opacity for the geom points. |
size |
The size for the geom points. |
source |
A character string of length 1 that matches the source argument in event_data(). |
A plotly::ggplotly()
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.