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;
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.