I generated spaghetti plots using the series statement in proc sgplot to show values over time for each patient (coming from 2 cohorts). I am repeating the same plots by cohort and would like the patients to have same colors as in the overall plot. How can I do that? Here's my code **PLOT1; proc sgplot; series x= visit y=heartrate/group=patientID; run; * Displays values for patients 1, 2, 3, 4, 5, 6, 7 in colors red, blue, green, orange, cyan, black, brown. * Repeating by treatment; *PLOT2; proc sgplot; series x= visit y=heartrate/group=patientID; by treatment; run; Patients 1, 2, 5, 7 are in treatment 1 and remaining in treatment 2. How can I make sure that the colors assigned to each patient is same as in the "PLOT1"? Thanks so much!
... View more