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


Is there a way to use hexademical or RGB colors within proc tabulate to use custom colors?

For example,

proc tabulate data = example;

    class measure measure1;

    class lev measure1 / style = {background = blue};

If I were to use this blue: Hexademical 0xF1E5DB or RGB 219 229 211

I tried:

class lev measure / style = {background = 0xF1E5DB}

class lev measure / style = {background = '0xF1E5DB'}

class lev measure / style = {background = '0xF1E5DB'x}

Thank you for your help

1 ACCEPTED SOLUTION

Accepted Solutions
Tim_SAS
Barite | Level 11

Check out Color-Naming Schemes in the SAS/GRAPH reference.

View solution in original post

7 REPLIES 7
sascom10
Calcite | Level 5

Try using this -

class lev measure / style = {background = '#F1E5DB'}

class lev measure / style = {background = '#F1E5DB'}

class lev measure / style = {background = '#F1E5DB'}

Reeza
Super User

What output destination are you using, HTML, RTF, PDF or XML/EXCEL?

OPHD1
Fluorite | Level 6

PDF and/or PNG

ballardw
Super User

Four different color systems use hex coding in SAS; RGB, CMYK, HLS and HSV.

If you have SAS Graph there are several macros available for creating codes starting with %helpclr to provide help for the specific color macros.

OPHD1
Fluorite | Level 6

Thanks for the tip. Using http://support.sas.com/documentation/cdl/en/graphref/65389/HTML/default/viewer.htm#n06px2si7b0932n1l..., I tried to call %helpclr and was not able to. I have SAS Graph

Tim_SAS
Barite | Level 11

Check out Color-Naming Schemes in the SAS/GRAPH reference.

OPHD1
Fluorite | Level 6

Thank you

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 7 replies
  • 1102 views
  • 3 likes
  • 5 in conversation