[R] help with longitudinal data plot

Robert Terwilliger raterwil at gmail.com
Fri Aug 8 00:01:59 CEST 2008


Dear R Help,

I am attempting to make a plot of longitudinal data, a sample data
frame of which is shown below.

I'd like to show all of the subjects in the same plot, with a set of
connecting line segments for each subject. 'age' would be the x-axis
and 'score' would be the y-axis.

    subject age  score
1     10123  12  51.06
2     10123  14  50.00
3     10123  15  62.22
4     10124  12  74.42
5     10124  13  72.73
6     10124  14  63.41
7     10125  16  54.55
8     10125  17  50.00
9     10125  18  54.35
10    10128  17  97.83
11    10128  18  97.87
12    10128  19 100.00
...

Any help would be appreciated.

Regards,

Robert Terwilliger



More information about the R-help mailing list