Spaghetti plots display fitted values for each grouping factor in a single panel with (optional) the average fitted line.

spaghetti(model, grouping = NA, level = 0.95, xvar = NA,
  line_col = "black", line_lty = 1, ribbon_col = NA,
  ribbon_fill = "grey60", ribbon_alpha = 0.3, average = T, ...)

Arguments

model

A brmsfit model

grouping

Name of grouping variable (e.g. (1 | grouping)). Defaults to NA which returns the unique / first grouping factor in model.

level

For limits of credible intervals

xvar

What variable should be on the x-axis

line_col

Line color

line_lty

Line type

ribbon_col

Ribbon color

ribbon_fill

Ribbon fill

ribbon_alpha

Ribbon transparency

average

Show average fitted values?

...

Passed to tidyfitted()

Value

a ggplot