If what you mean is a longitudinal "spaghetti plot" with a separate line for each person, I get such things via SAS as below. Adapt as needed. See online SAS Graph documentation, especially Proc GPlot.
goptions dev=png ftext='Arial' hby=2 htext=1.75 gsfname=grafout nofileonly hsize= 8 in vsize=5 in
RESET=SYMBOL ;
filename grafout ' path to directory goes here ' ;
proc sort nodupkey ; by BaseDx SubjIDShort DateVst ;
proc gplot uniform ;
by BaseDx ;
plot DepVar * Yr_in_Study = SubjIDShort / hminor=0 vminor=0 nolegend
haxis= -0.5 to 4.5 by 0.5 vaxis= 0.5 to 4.5 by 0.5 ;
symbol value=circle width=1.75 interpol=join height=3 repeat=5000 ;
label Yr_in_Study = 'Year in the Study' ;
title;
footnote;
-------------------------------------------
Joseph Locascio
-------------------------------------------
Original Message:
Sent: 12-22-2014 12:20
From: Peter Homel
Subject: Parallel Line Graph
Does anyone know how to do a parallel line graph in either SAS or R? I have a request from a journal to do a parallel line graph to illustrate individual patient trends over time for pain relief but as far as I can see, it is only available in STATA which I don't have access to.
Thanks all,
Peter
-------------------------------------------
Peter Homel PhD
Senior Biostatistician
Maimonides Medical Center
Brooklyn, NY 11219
-------------------------------------------