BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
kathisas
Fluorite | Level 6

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 🙂

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenKuhfeld
Ammonite | Level 13
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;

View solution in original post

1 REPLY 1
WarrenKuhfeld
Ammonite | Level 13
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;
Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1518 views
  • 1 like
  • 2 in conversation