I have a Scatterplot and I would like to have different Colors of the Points for different Groups.
How does this work in SAS Studio?
please help me 🙂
proc sgplot data=sashelp.iris;
scatter x=petallength y = sepallength / group=species;
run;
proc sgplot data=sashelp.iris;
styleattrs datacontrastcolors=(red purple orange);
scatter x=petallength y = sepallength / group=species;
run;
proc sgplot data=sashelp.iris;
scatter x=petallength y = sepallength / group=species;
run;
proc sgplot data=sashelp.iris;
styleattrs datacontrastcolors=(red purple orange);
scatter x=petallength y = sepallength / group=species;
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 save with the early bird rate—just $795!
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.