<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Changing Graph Colors in a Predefined Style in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Changing-Graph-Colors-in-a-Predefined-Style/m-p/276026#M9852</link>
    <description>&lt;P&gt;Sure. Look at the examples by Dan Heath about "attribute maps".&amp;nbsp;You can&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2012/02/27/roses-are-red-violets-are-blue/" target="_self"&gt; use the DATTRMAP= option in PROC SGPLOT to specify attributes, &lt;/A&gt;Or you can &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2012/03/01/roses-are-red-violets-are-blue-part-2/" target="_self"&gt;use the DISCRETEATTRMAP statement in the GTL.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some other options, if you want to use SGPLOT:&lt;/P&gt;
&lt;P&gt;1. &lt;A href="http://blogs.sas.com/content/iml/2012/10/17/specify-the-colors-of-groups-in-sas-statistical-graphics.html" target="_self"&gt;Specify the colors of groups in SAS statistical graphics&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2.&lt;A href="http://blogs.sas.com/content/iml/2016/04/11/attributes-sgplot-style-elements.html" target="_self"&gt;Set attributes of markers in PROC SGPLOT by using ODS style elements.&lt;/A&gt;&amp;nbsp;This article explains the various style elements and links to important sections of the documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2016 16:55:34 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2016-06-08T16:55:34Z</dc:date>
    <item>
      <title>Changing Graph Colors in a Predefined Style</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-Graph-Colors-in-a-Predefined-Style/m-p/276008#M9851</link>
      <description>&lt;P&gt;I am not very good with PROC TEMPLATE. &amp;nbsp;I have a general idea of what I need to do, but I can't seem to get&amp;nbsp;my changes to take hold, so I'm reaching out to the SAS gurus.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I usually use the LISTING style when producing graphs in RTF format through ODS. &amp;nbsp;When I use a GROUP= option, the style defaults to&amp;nbsp;making the first category blue, the second red, and the third green. &amp;nbsp;I would like to swap the red and green.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know there is a GraphColors class, but there are so many options in there that I'm not sure what I'm supposed to be chainging. &amp;nbsp;I don't know the difference between GDATA, GCDATA, GNDATA, GNCDATA, etc. &amp;nbsp;Can someone show me a snippet of code that can swap (or even change) colors in a predefined style template? &amp;nbsp;And maybe as an added bonus, explain the difference between all the GDATA options?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 15:47:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-Graph-Colors-in-a-Predefined-Style/m-p/276008#M9851</guid>
      <dc:creator>djbateman</dc:creator>
      <dc:date>2016-06-08T15:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Graph Colors in a Predefined Style</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-Graph-Colors-in-a-Predefined-Style/m-p/276026#M9852</link>
      <description>&lt;P&gt;Sure. Look at the examples by Dan Heath about "attribute maps".&amp;nbsp;You can&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2012/02/27/roses-are-red-violets-are-blue/" target="_self"&gt; use the DATTRMAP= option in PROC SGPLOT to specify attributes, &lt;/A&gt;Or you can &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2012/03/01/roses-are-red-violets-are-blue-part-2/" target="_self"&gt;use the DISCRETEATTRMAP statement in the GTL.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some other options, if you want to use SGPLOT:&lt;/P&gt;
&lt;P&gt;1. &lt;A href="http://blogs.sas.com/content/iml/2012/10/17/specify-the-colors-of-groups-in-sas-statistical-graphics.html" target="_self"&gt;Specify the colors of groups in SAS statistical graphics&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2.&lt;A href="http://blogs.sas.com/content/iml/2016/04/11/attributes-sgplot-style-elements.html" target="_self"&gt;Set attributes of markers in PROC SGPLOT by using ODS style elements.&lt;/A&gt;&amp;nbsp;This article explains the various style elements and links to important sections of the documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 16:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-Graph-Colors-in-a-Predefined-Style/m-p/276026#M9852</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-06-08T16:55:34Z</dc:date>
    </item>
  </channel>
</rss>

