Plots the model predictions for a function-on-scalar model fitted with
pffr
.
1 2 3 4 5 6 7 | plot_predictions(model, newdata, yvar, ci_type = "none",
ci_alpha = 0.05, labels = NULL, legend_title = "group",
col_palette = "Set1", col_vector = NULL, rev_cols = FALSE,
base_size = 11, legend_symbol_size = 2, type = "response",
log10 = FALSE, plot.margin = unit(rep(5.5, 4), "points"), hline,
ybreaks = waiver(), ylabels = waiver(), xlab = "yindex",
ylab = "prediction", main, ylim = NULL, lwd = 1, ...)
|
model |
Function-on-scalar model fitted with |
newdata |
See |
yvar |
name of the response variable in |
ci_type |
One of |
ci_alpha |
Alpha to be used for confidence or prediction intervals. Defaults to 0.05, i.e. 95% intervals. |
labels |
Labels vector with length equal to |
legend_title |
Title of legend |
col_palette |
Color palette to use in plot, see
|
col_vector |
Vector of colors to use |
rev_cols |
If TRUE, the color palette is turned around. |
base_size |
Base size of plot elements, see |
legend_symbol_size |
Size of symbols in legend. Default to 2 |
type |
|
log10 |
If TRUE the predictions are shown on a log10 scale |
plot.margin |
Margin of the ggplot |
hline |
Vector of |
ybreaks |
Numeric vector of breaks for the y axis |
ylabels |
Character vector of labels for the y axis. Only used if
|
xlab, ylab, main, ylim, lwd |
Further arguments for the plot function |
... |
Additional arguments passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.