<?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: GRADLEGEND option INTEGER not being honored in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/GRADLEGEND-option-INTEGER-not-being-honored/m-p/495531#M16929</link>
    <description>&lt;P&gt;If you defined multiple&amp;nbsp;ranges in the RATTRMAP data that would be expected behavior. If you only have a single range for the rattrid value you might want to show the attribute data set. Or possibly add the EXCLUDEMIN and EXLCUDEMAX variables to the attribute data if you have multiple ranges for the id group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might not hurt to provide a small example of your plot data set and the attribute set so we test code with the values.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Sep 2018 21:31:46 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-09-13T21:31:46Z</dc:date>
    <item>
      <title>GRADLEGEND option INTEGER not being honored</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GRADLEGEND-option-INTEGER-not-being-honored/m-p/495496#M16928</link>
      <description>&lt;P&gt;I am producing a HEATMAP in SGPLOT 9.4m4. I am trying to use the INTEGER option in the GRADLEGEND statement so that my color response legend only shows integer tick values (-2, -1, 0, 1, 2). Instead of getting integer tick values I am getting tick values that align with the MIN/MAX values coming out of my RATTRMAP dataset. Is this expected behavior? I don't see anything in the documentation to suggest that RATTRMAP overrides INTEGER. But maybe I haven't looked closely enough.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;FONT face="courier new,courier"&gt;proc sgplot &lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;data=alerts &lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;rattrmap=rdbl5std &lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; heatmap y=functionn x=monthyear / &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; colorresponse=loadstd rattrid=rdbl5std&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; discretex discretey outline outlineattrs=(color=lightgray)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yaxis reverse display=(nolabel);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xaxis display=(nolabel);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gradlegend / position=bottom INTEGER;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="heatmap.png" style="width: 457px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23273i97EA0CBA287A21E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="heatmap.png" alt="heatmap.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 20:21:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GRADLEGEND-option-INTEGER-not-being-honored/m-p/495496#M16928</guid>
      <dc:creator>ShaneRosanbalm</dc:creator>
      <dc:date>2018-09-13T20:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: GRADLEGEND option INTEGER not being honored</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GRADLEGEND-option-INTEGER-not-being-honored/m-p/495531#M16929</link>
      <description>&lt;P&gt;If you defined multiple&amp;nbsp;ranges in the RATTRMAP data that would be expected behavior. If you only have a single range for the rattrid value you might want to show the attribute data set. Or possibly add the EXCLUDEMIN and EXLCUDEMAX variables to the attribute data if you have multiple ranges for the id group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might not hurt to provide a small example of your plot data set and the attribute set so we test code with the values.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 21:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GRADLEGEND-option-INTEGER-not-being-honored/m-p/495531#M16929</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-13T21:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: GRADLEGEND option INTEGER not being honored</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GRADLEGEND-option-INTEGER-not-being-honored/m-p/495672#M16933</link>
      <description>&lt;P&gt;Remove '&lt;SPAN&gt;rattrmap=rdbl5std'&amp;nbsp; and&amp;nbsp; 'rattrid=rdbl5std' .&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 13:43:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GRADLEGEND-option-INTEGER-not-being-honored/m-p/495672#M16933</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-09-14T13:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: GRADLEGEND option INTEGER not being honored</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GRADLEGEND-option-INTEGER-not-being-honored/m-p/495807#M16941</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;, thanks for the offer! Attached is a complete program and CSV data to create the above graphic. You need only change the value of &amp;amp;PATH at the top. Have fun playing!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 18:59:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GRADLEGEND-option-INTEGER-not-being-honored/m-p/495807#M16941</guid>
      <dc:creator>ShaneRosanbalm</dc:creator>
      <dc:date>2018-09-14T18:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: GRADLEGEND option INTEGER not being honored</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GRADLEGEND-option-INTEGER-not-being-honored/m-p/495808#M16942</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;, thanks for the suggesting, but removing the range attribute map would not produce the type of plot I need. The default color response behavior does not provide the blocks of constant color that are needed in this application.</description>
      <pubDate>Fri, 14 Sep 2018 19:02:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GRADLEGEND-option-INTEGER-not-being-honored/m-p/495808#M16942</guid>
      <dc:creator>ShaneRosanbalm</dc:creator>
      <dc:date>2018-09-14T19:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: GRADLEGEND option INTEGER not being honored</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GRADLEGEND-option-INTEGER-not-being-honored/m-p/495841#M16943</link>
      <description>&lt;P&gt;1) you want to actually test any proc import code provided. You needed a guessingrows=max option to keep the function variables from getting truncated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) because the range of your COLORRESPONSE variable LOADSTD ranges from -2 to about 1.5 the color gradient does not center in the "white" section using the INTEGER option that will display the integer values.&lt;/P&gt;
&lt;P&gt;It appears that to get your color choices and integer appearance may have conflict and you'll have to choose between the color gradient and the labels as which is more important.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you can get something workable with careful choices in a COLORMODEL.&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=alerts  ;
   heatmap y=functionn x=monthyear /
      colorresponse=loadstd 
      colormodel = (cx0571b0 white cxca0020)
      discretex discretey
      outline outlineattrs=(color=lightgray)
      ;
   yaxis reverse display=(nolabel);
   xaxis display=(nolabel);
   gradlegend / position=bottom integer title="(under)     Standardized FTE Utilization Differential     (over)";
run; title;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Sep 2018 22:48:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GRADLEGEND-option-INTEGER-not-being-honored/m-p/495841#M16943</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-14T22:48:02Z</dc:date>
    </item>
  </channel>
</rss>

