Help using Base SAS procedures

Hexadecimal Colors in Proc Tabulate

Accepted Solution Solved
Reply
Contributor
Posts: 28
Accepted Solution

Hexadecimal Colors in Proc Tabulate


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


Accepted Solutions
Solution
‎05-15-2013 07:48 AM
Super Contributor
Posts: 394

Re: Hexadecimal Colors in Proc Tabulate

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

View solution in original post


All Replies
Occasional Contributor
Posts: 15

Re: Hexadecimal Colors in Proc Tabulate

Try using this -

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

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

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

Super User
Posts: 19,789

Re: Hexadecimal Colors in Proc Tabulate

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

Contributor
Posts: 28

Re: Hexadecimal Colors in Proc Tabulate

PDF and/or PNG

Super User
Posts: 11,343

Re: Hexadecimal Colors in Proc Tabulate

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.

Contributor
Posts: 28

Re: Hexadecimal Colors in Proc Tabulate

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

Solution
‎05-15-2013 07:48 AM
Super Contributor
Posts: 394

Re: Hexadecimal Colors in Proc Tabulate

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

Contributor
Posts: 28

Re: Hexadecimal Colors in Proc Tabulate

Thank you

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

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