Hello Folks,
How to convert the following piece of code to proc template (I want to get circles as symbol and the color according to group):
proc sgplot data=sashelp.iris; scatter x=petallength y=petalwidth / group=species; run;
Kind Regards,
I think you can accomplish this more simply without using PROC TEMPLATE. Moving to the Graphics Programming board for more experts. In the meantime, look at COLORMODEL and COLORRESPONSE options.
I am confused. The program you provided shoulld have given you exactly what you asked, unless you are using an ODS style that is not "color priority". Try this and see if it makes a difference:
ods graphics / attrpriority=color;
proc sgplot data=sashelp.iris;
scatter x=petallength y=petalwidth / group=species;
run;
Hope this helps!
Dan
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!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.