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

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.

SAS Training: Just a Click Away

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

Browse our catalog!

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