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;
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: