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;
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.