plotSpaghetti: Spaghetti plot

Description Usage Arguments Author(s) Examples

Description

Plot subjects in a longitudinal dataset, making a 'spaghetti' plot.

Usage

1
plotSpaghetti(data, y, x, groups = "SID")

Arguments

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.

Author(s)

Luke W. Johnston

Examples

1
2
3
4
5
## Not run: 
## A pretend case (not a real example)
plotSpaghetti(dataset, 'Height', 'Year', 'SubjectID')

## End(Not run)

lwjohnst86/rstatsToolkit documentation built on May 21, 2019, 9:15 a.m.