Dispaly scatterplot of actual vs. predicted values for a regression model.

fdPanelRegressionScatterplot(actual, predicted)

Arguments

actual
vector of actual values
predicted
vector of predicted values

Examples

library(flightdeck)
fit <- lm(mpg ~ ., data = mtcars)
actual <- mtcars$mpg
predicted <- predict(fit)
if (interactive()){
  fdPanelRegressionScatterplot(actual, predicted) %>%
    fdPreview
}