The SAS Output Delivery System and reporting techniques

attrpriority in ODS graphics

Accepted Solution Solved
Reply
New Contributor
Posts: 4
Accepted Solution

attrpriority in ODS graphics

[ Edited ]

I am quite new to sas, and really sometimes I want to use it as a fast (without scanning through all the documentation) way for analysis.

My comment may not seem very bright (for what I apologize)

But sometimes things are just not intuitive.

For example:

http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_odsgraph_sec...

 

attrpriority=none 

vs.

attrpriority=color;

I would like to understand why such option was created. Is it due to process optimization?

It took me a while to resolve this issue, because I wanted to make a time series graph by group with graphs that are different not only with regard to color but also marker and datacontrastcolor statement in SGPLOT was ignored by SAS. When I resolved the issue I was surprised by this feature Smiley Very Happy

In general I am very happy with SAS, and the fact that University Edition is available. Smiley Happy

 

 


Accepted Solutions
Solution
‎11-24-2017 01:13 PM
SAS Super FREQ
Posts: 442

Re: Just a commnet

Posted in reply to SilvijusA

The initial styles in SAS were all (what we now call) attribute priority=none.  The thought was they would work reasonably OK if a color image was printed in black and white.  Many of us did not like this and wanted styles optimized for color.  I pushed through HTMLBLUE, which was an attrpriority=color style.  Its less well known partner was HTMLBLUECML which used the colors of HTMLBLUE but was attrpriority=none.  You have a choice of either type, and you can change the attribute priority for particular graphs or in general.  My preference is to use htmlblue, change the attribute priority to none, and make the lines all solid.  Attribute priority is very well documented and we talk about it in our tutorials.  I particularly recommend the primer in the ODS Graphics chapter of SAS/STAT for basic information about ODS Graphics.  There will be many things in a complicated system like SAS that will be surprising.  This is why we have extensive documentation, all available to google searches, tech support, and SAS Communities.

View solution in original post


All Replies
Solution
‎11-24-2017 01:13 PM
SAS Super FREQ
Posts: 442

Re: Just a commnet

Posted in reply to SilvijusA

The initial styles in SAS were all (what we now call) attribute priority=none.  The thought was they would work reasonably OK if a color image was printed in black and white.  Many of us did not like this and wanted styles optimized for color.  I pushed through HTMLBLUE, which was an attrpriority=color style.  Its less well known partner was HTMLBLUECML which used the colors of HTMLBLUE but was attrpriority=none.  You have a choice of either type, and you can change the attribute priority for particular graphs or in general.  My preference is to use htmlblue, change the attribute priority to none, and make the lines all solid.  Attribute priority is very well documented and we talk about it in our tutorials.  I particularly recommend the primer in the ODS Graphics chapter of SAS/STAT for basic information about ODS Graphics.  There will be many things in a complicated system like SAS that will be surprising.  This is why we have extensive documentation, all available to google searches, tech support, and SAS Communities.

☑ This topic is solved.

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

Discussion stats
  • 1 reply
  • 225 views
  • 0 likes
  • 2 in conversation