Skip to contents

Plot term effects for a fitted longitudinal model

Usage

plot_terms(
  x,
  y = NULL,
  data = NULL,
  ci_level = 0.95,
  ncol = 4,
  include_intercept = FALSE,
  plot_interactions = FALSE,
  ci_col = "red",
  fit_col = "black",
  show_legend = TRUE,
  smooth_even_grid = TRUE,
  smooth_grid_n = 200,
  paginate = FALSE,
  ...
)

Arguments

x

A fitted gamlss.longitudinal object.

y

Unused; included for compatibility with older calls.

data

Optional data frame used to recover factor levels, transformed covariate scales, and interaction plotting metadata. Factor fixed terms are grouped into one point-and-interval plot per model term and parameter.

ci_level

Confidence level for pointwise intervals.

ncol

Number of columns in the combined dashboard.

include_intercept

Logical; include intercept terms in fixed-effect plots.

plot_interactions

Logical; include fixed-effect interaction terms.

ci_col, fit_col

Colours for interval and fitted-term layers.

show_legend

Logical; include plot captions/legends where available.

smooth_even_grid

Logical; draw smooth terms on an evenly spaced grid.

smooth_grid_n

Number of grid points for smooth-term plots.

paginate

Logical; print one chart at a time for large dashboards.

...

Additional arguments reserved for future use.

Value

Invisibly returns a list with smooth-term, fixed-term, and dashboard plot objects.