Hi SAS community! I have a question about generating different color combinations for the sgplot. I know it might sound silly but it could really help me a lot! The task is like that: proc sgplot data= test;
series y=year x=banana / lineattrs=(color=Red pattern=dot)
markerattrs=(color=Red symbol=circlefilled);
series y=year x=strawberry / lineattrs=(color=black pattern=dot)
markerattrs=(color=black symbol=circlefilled);
series y=year x=grape / lineattrs=(color=blue pattern=dot)
markerattrs=(color=blue symbol=circlefilled);
title "production of fruit by year";
run; The plot draws several series of lines, and I JUST want to test for the color of banana line first, with color of red, then green , then blue, etc.etc, as well as the patterns... I've tried %array and % do_over but cannot make it work... Thanks a lot!
... View more