Skip to contents

Plot the dynamic profile: effect by elapsed time, one line per cohort group

Usage

plot_dynamics(
  groups,
  level = NULL,
  focal = "20-30",
  scale = 1,
  ylab = "Effect"
)

Arguments

groups

Output of cdd_groups() with align = "onset" (has k, group).

level

Outcome level.

focal

Group label drawn in black with error bars; others in grey.

scale

Multiply effects by this.

ylab

Y-axis label.

Value

A ggplot object.