Description Usage Arguments Examples
Dispaly scatterplot of actual vs. predicted values for a regression model.
1 | fdPanelRegressionScatterplot(actual, predicted)
|
actual |
vector of actual values |
predicted |
vector of predicted values |
1 2 3 4 5 6 7 8 | library(flightdeck)
fit <- lm(mpg ~ ., data = mtcars)
actual <- mtcars$mpg
predicted <- predict(fit)
if (interactive()){
fdPanelRegressionScatterplot(actual, predicted) %>%
fdPreview
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.