- models
A GHRmodels object containing fitted model outputs.
- mod_id
Integer vector specifying which model(s) to plot (as indexed in model$models).
- mod_label
An optional named character vector mapping model names
to custom labels, e.g. c("mod1" = "Model 1"). Any model not found in the
vector names retains its original label.
- name
Optional character vector of variable names (as used in inla.group(...))
to select specific nonlinear effects. Required for collapse mode.
- pattern
Optional regular expression pattern to match effect names.
Used to select nonlinear effects when name is not provided.
- title
Optional overall title for the plot.
- var_label
Optional named character vector providing custom labels for each nonlinear variable.
Names must match the variable names (e.g., used in inla.group(x)), not full effect names.
- palette
Name of the color palette to use (passed to GHR_palette). Default is "IDE2".
- xlim
Optional named list specifying x-axis limits for each effect.
Each element should be a numeric vector of length 2: list(var1 = c(min, max), var2 = c(min, max)).
Variable names must match those used in inla.group().
- ylab
Optional y-axis label. If NULL, defaults to "Effect size".
- xlab
Optional x-axis label. If NULL, defaults to "<variable> values".
If explicitly set to NULL, no x-axis label will be shown.
- histogram
Logical; if TRUE (default), includes a histogram below each partial-effect plot.
- legend
Legend title for the replicate color scale (if multi-replicate effects are present). Default is "Replicate".
- hist_fill
Fill color for histogram bars. Default is "grey".
- rug
Include a rug plot in the x-axis. Default is FALSE.
- collapse
Logical; if TRUE, attempts to collapse plots across models to show one plot per variable.
This requires that selected nonlinear effect is not replicated (i.e. the covariate
is not in the format f(covariate, model = ..., replicate = group))
- exp
Logical,if TRUE the coefficients are exponentiated, Default is if FALSE.