Hi I have this certain code
proc sgplot data=a.data_out;
hbar trt_group / response=Percent group=scales groupdisplay=stack ;
run;
I would like to use RGB color format for 'scales' variables. I used pattern but it won't work
Scales variables has 7 ordinal scales: 0, 1, 2, 3, 4, 5, 6
Any help would be great!
THanks
Radhika
Same answer as yesterday, use DATACONTRASTCOLORS and DATACOLORS on the STYLEATTRS statement.
Or use a data attribute map.
Different ways of specifying colors are listed here:
PS. I'll also move this post to the graphics forum again.
@radhikaa4 wrote:
Hi I have this certain code
proc sgplot data=a.data_out;
hbar trt_group / response=Percent group=scales groupdisplay=stack ;
run;
I would like to use RGB color format for 'scales' variables. I used pattern but it won't work
Scales variables has 7 ordinal scales: 0, 1, 2, 3, 4, 5, 6
Any help would be great!
THanksRadhika
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.