| plot_paths | R Documentation |
Plots multiple trajectories from panel or longitudinal data grouped by unit.
plot_paths(df,
col = NULL,
lwd = 1,
xlab = "t",
ylab = "Y",
main = NULL,
...)
df |
Data frame containing the observed data. It must include the columns
|
col |
Optional vector of colors, one per unit. If |
lwd |
Line width used for the trajectories. |
xlab |
Label for the x-axis. |
ylab |
Label for the y-axis. |
main |
Optional main title for the plot. |
... |
Additional graphical parameters passed to |
A ggplot graph.
data(datasim02)
plot_paths(datasim02)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.