I have a SAS EG 4.3 and I guess it does not include DATTRMAP to change colors of grouped scatterplots. Is there any other way to choose colors for grouped graphs without this function ?
Use the DATACONTRASTCOLORS= Option in the STYLEATTRS Statement like this
proc sgplot data=sashelp.iris noautolegend;
styleattrs datasymbols=(circlefilled) datacontrcolors=(red yellow green);
scatter x=sepallength y=sepalwidth / group=species;
keylegend / location=inside position=NE across=1;
run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.