Skip to contents

A tidy coefficient plot of the fixed-effect estimates and confidence intervals from sdmTMB::tidy(). This is the generic equivalent of a conditional-effects figure: it summarises the fitted parameters rather than predicting over covariate ranges.

Usage

plot_fixed_effects(fit, base_size = 11)

Arguments

fit

A fitted sdmTMB::sdmTMB() model.

base_size

Numeric. Base font size. Default 11.

Value

A ggplot object.

See also

Author

Mikko Vihtakari

Examples

# \donttest{
mesh <- sdmTMB::make_mesh(sdmTMB::pcod, c("X", "Y"), cutoff = 20)
m <- sdmTMB::sdmTMB(
  density ~ 0 + as.factor(year) + depth_scaled, data = sdmTMB::pcod,
  time = "year", mesh = mesh, family = sdmTMB::tweedie()
)
plot_fixed_effects(m)

# }