Skip to contents

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.

Examples

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

draw(mod)