draw.galamm: Draw method for galamm objects

View source: R/gratia_draw.R

draw.galammR Documentation

Draw method for galamm objects

Description

This function uses gratia::draw to visualize smooth terms. See gratia::draw() for details. When object is not of class galamm, it is forwarded to gratia::draw().

Usage

## S3 method for class 'galamm'
draw(object, ...)

Arguments

object

An object of class galamm returned from galamm.

...

Other arguments passed on to gratia::draw().

Value

A ggplot object.

See Also

Other summary functions: anova.galamm(), plot_smooth.galamm(), print.galamm(), print.summary.galamm(), summary.galamm()

Examples

dat <- subset(cognition, domain == 1 & item == "11")
dat$y <- dat$y[, 1]
mod <- galamm(y ~ s(x) + (1 | id), data = dat)

draw(mod)


galamm documentation built on Dec. 21, 2025, 5:07 p.m.