Plot estimated effects for model parametric terms
# S3 method for parametric_effects
draw(
object,
scales = c("free", "fixed"),
ci_level = 0.95,
ci_col = "black",
ci_alpha = 0.2,
line_col = "black",
constant = NULL,
fun = NULL,
rug = TRUE,
position = "identity",
angle = NULL,
...,
ncol = NULL,
nrow = NULL,
guides = "keep"
)a fitted GAM, the result of a call to mgcv::gam().
character; should all univariate smooths be plotted with the
same y-axis scale? If scales = "free", the default, each univariate
smooth has its own y-axis scale. If scales = "fixed", a common y axis
scale is used for all univariate smooths.
Currently does not affect the y-axis scale of plots of the parametric terms.
numeric between 0 and 1; the coverage of credible interval.
colour specification for the confidence/credible intervals band. Affects the fill of the interval.
numeric; alpha transparency for confidence or simultaneous interval.
colour specification used for regression lines of linear continuous terms.
numeric; a constant to add to the estimated values of the
smooth. constant, if supplied, will be added to the estimated value
before the confidence band is computed.
function; a function that will be applied to the estimated values
and confidence interval before plotting. Can be a function or the name of a
function. Function fun will be applied after adding any constant, if
provided.
logical; draw a rug plot at the botom of each plot for 1-D smooths or plot locations of data for higher dimensions.
Position adjustment, either as a string, or the result of a call to a position adjustment function.
numeric; the angle at which the x axis tick labels are to be
drawn passed to the angle argument of ggplot2::guide_axis().
additional arguments passed to patchwork::wrap_plots().
numeric; the numbers of rows and columns over which to spread the plots
character; one of "keep" (the default), "collect", or
"auto". Passed to patchwork::plot_layout()