View source: R/interaction_plot.R
| prepare_wb_plot | R Documentation |
Integration hook for interactions::interact_plot() and
interactions::cat_plot(). Plotting packages should call this before choosing
predictor ranges or moderator values. The fitted object is not modified.
prepare_wb_plot(
model,
data,
pred,
modx = NULL,
mod2 = NULL,
plot.scale = c("within", "original"),
modx.values = NULL,
mod2.values = NULL,
at = NULL
)
model |
A fitted |
data |
Original fitting data, optionally a subset of its observations. Panel identifiers must be present. Extra columns are allowed. |
pred, modx, mod2 |
Character names of the predictor and moderators. |
plot.scale |
|
modx.values, mod2.values |
Moderator values on the selected display scale. |
at |
Fixed values on the display scale. Overrides of |
A list containing display data, a temporary model with plotting metadata, moderator values, default labels, and a caption.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.