mmm_plot | R Documentation |
Generates a dygraphs-plot to compare model prediction and actual values for a given AV. Also displays residuals in an interactive display in the viewer.
mmm_plot(model, data = NULL, index = 1)
model |
object of class "lm" containing the results returned by the lm() model fitting function |
data |
an optional data frame (or object coercible by as.data.frame to a data frame) containing the variables in the model. If not found in data, the variables are taken from environment(formula), typically the environment from which lm is called. |
index |
single value of type "integer" or "character" to identify the time series in the original data for the model |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.