View source: R/plot_ave_data.R
A companion function to create_ave_plot_data. This function calls the aggregator and then makes a nice plot.
1 | plot_ave_data(x, y_true, y_pred = NULL, w = NULL, rescale = FALSE)
|
x |
A vector that contains the dimension that you want to aggregate by |
y_true |
A vector that contains the target variable (think OBS in emblem) |
y_pred |
A vector that contains the fitted value from a model (think CA in emblem). Defaults to NULL |
w |
A vector that contains row level weights (e.g. exposure). Defaults to NULL |
rescale |
A logical indicating whether you want to the resulting series scaled about the largest level |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.