Description Usage Arguments Author(s) Examples
Plot subjects in a longitudinal dataset, making a 'spaghetti' plot.
1 | plotSpaghetti(data, y, x, groups = "SID")
|
data |
The dataset to plot. |
y |
The variable to go on the y-axis. |
x |
The variable to go on the x-axis. |
groups |
The unique ID variable to differentiate subjects in a longitudinal dataset. |
Luke W. Johnston
1 2 3 4 5 | ## Not run:
## A pretend case (not a real example)
plotSpaghetti(dataset, 'Height', 'Year', 'SubjectID')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.