<?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 SGPLOT: How to tie COLORRESPONSE variable to attribute map? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-to-tie-COLORRESPONSE-variable-to-attribute-map/m-p/525759#M17635</link>
    <description>&lt;P&gt;Ok, this should be simple, but I'm stumped. &lt;BR /&gt;&lt;BR /&gt;I've created a discrete attribute map to vary the colors in a stacked bar chart (SGPLOT VBAR), which automatically gets tied to the GROUP variable, but I'd like to tie it instead to a different variable.&lt;BR /&gt;&lt;BR /&gt;When I specify a different COLORRESPONSE variable, however, a completely different set of colors - not those in the discrete attribute map - are used.&lt;BR /&gt;&lt;BR /&gt;So, my question is: How do I tie the COLORRESPONSE variable to the colors in the discrete attribute map?&lt;BR /&gt;&lt;BR /&gt;Or is this not possible with SGPLOT and I'll have to use GTL (e.g., DISCRETEATTRVAR)?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Tc&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jan 2019 16:25:09 GMT</pubDate>
    <dc:creator>tc</dc:creator>
    <dc:date>2019-01-09T16:25:09Z</dc:date>
    <item>
      <title>SGPLOT: How to tie COLORRESPONSE variable to attribute map?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-to-tie-COLORRESPONSE-variable-to-attribute-map/m-p/525759#M17635</link>
      <description>&lt;P&gt;Ok, this should be simple, but I'm stumped. &lt;BR /&gt;&lt;BR /&gt;I've created a discrete attribute map to vary the colors in a stacked bar chart (SGPLOT VBAR), which automatically gets tied to the GROUP variable, but I'd like to tie it instead to a different variable.&lt;BR /&gt;&lt;BR /&gt;When I specify a different COLORRESPONSE variable, however, a completely different set of colors - not those in the discrete attribute map - are used.&lt;BR /&gt;&lt;BR /&gt;So, my question is: How do I tie the COLORRESPONSE variable to the colors in the discrete attribute map?&lt;BR /&gt;&lt;BR /&gt;Or is this not possible with SGPLOT and I'll have to use GTL (e.g., DISCRETEATTRVAR)?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Tc&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 16:25:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-to-tie-COLORRESPONSE-variable-to-attribute-map/m-p/525759#M17635</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2019-01-09T16:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT: How to tie COLORRESPONSE variable to attribute map?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-to-tie-COLORRESPONSE-variable-to-attribute-map/m-p/525766#M17637</link>
      <description>&lt;P&gt;COLORRESPONSE variables cannot be tied to discrete attrmaps, even in GTL. You need to use a RANGE attrmap instead, It gives you the ability to associate a single color to a range, or even a list of colors to a range so that the colors vary across the range.&amp;nbsp; Take a look at page 13 of my paper a did a couple of years ago, and let me know if you have any questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings17/SAS0675-2017.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings17/SAS0675-2017.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 16:33:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-to-tie-COLORRESPONSE-variable-to-attribute-map/m-p/525766#M17637</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-01-09T16:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT: How to tie COLORRESPONSE variable to attribute map?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-to-tie-COLORRESPONSE-variable-to-attribute-map/m-p/525794#M17640</link>
      <description>&lt;P&gt;Thanks - your suggestion worked like a charm!&amp;nbsp;&lt;img id="manlol" class="emoticon emoticon-manlol" src="https://communities.sas.com/i/smilies/16x16_man-lol.png" alt="Man LOL" title="Man LOL" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 17:46:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-to-tie-COLORRESPONSE-variable-to-attribute-map/m-p/525794#M17640</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2019-01-09T17:46:29Z</dc:date>
    </item>
  </channel>
</rss>

