I am learning how to do spaghetti plots using Proc SGPlot. I am having trouble creating a profile plot for each individual subject ID and then to use different colors for males and females. This is what I have so far: sgplot data=DentalL; series y=Response x=Time / Break group=ID; xaxis values=(6 to 16 by 2) label='Age in years'; yaxis values=(0 to 35 by 5) label='Dental Growth in mm'; title 'Individual Profiles'; run; quit; Can anyone help me use different line colors for different genders?
... View more