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
Check out Color-Naming Schemes in the SAS/GRAPH reference.
Try using this -
class lev measure / style = {background = '#F1E5DB'}
class lev measure / style = {background = '#F1E5DB'}
class lev measure / style = {background = '#F1E5DB'}
What output destination are you using, HTML, RTF, PDF or XML/EXCEL?
PDF and/or PNG
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.
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
Check out Color-Naming Schemes in the SAS/GRAPH reference.
Thank you
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.