Hi,
As @Reeza had mentioned, your data should be converted to have three columns (year, Category, value) and 48 rows (2003 - 2013 by 2 yrs increments)
This how I generated my Sample data to "reproduce" your chart
data want(KEEP=year cat val);
length year 4 cat $12 val 4;
array bfs {8} $12 bf1 - bf8 ('BF Ever (Yes)' 'BF Ever (No)' 'BF 4WK+ (Yes)' 'BF 4WK+ (No)' 'BF 3M+ (Yes)' 'BF 3M+ (No)' 'BF 12M+ (Yes)' 'BF 12M+ (No)');
do year=2003 to 2013 by 2;
do i=1 to dim(bfs);
cat = bfs[i];
val = rand('uniform') * 10; /* Used Random numbers */
output;
end;
end;
run;
For Custom line styling and coloring, you could use SAS/GRAPH SYMBOL, LEGEND, and AXIS statements prior to Proc Gplot, or use other SAS charting procedures.
Note: I used the Line Plot Wizard in SAS Enterprise Guide, to generate my chart.
Hope this helps.
Ahmed
... View more