<?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 Proc SGPLot, heatmapparm in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLot-heatmapparm/m-p/945194#M25056</link>
    <description>&lt;P&gt;Using SAS9.4&lt;/P&gt;
&lt;P&gt;I have my code below. I am trying to adjust the values on the second yaxis. Currently, the count is displayed there, which I want, but I would like to adjust the count to display more numbers. Ideally, I would like to display 1 to 15 by 1 but I have not been able to accomplish this. Any help would be appreciated. Thank you&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=heatmap_data;
    heatmapparm x=score y=Average_grade colorresponse=Count / colormodel=(blue gray red) tip=(Count);
    xaxis values=(1 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0);
    yaxis values=(1.5 2.0 2.5 3.0 3.5 4.0);
  	gradlegend / title="Count" integer;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPlot29.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100669iC4548B6B6A1D3DEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SGPlot29.png" alt="SGPlot29.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2024 13:16:59 GMT</pubDate>
    <dc:creator>GS2</dc:creator>
    <dc:date>2024-09-25T13:16:59Z</dc:date>
    <item>
      <title>Proc SGPLot, heatmapparm</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLot-heatmapparm/m-p/945194#M25056</link>
      <description>&lt;P&gt;Using SAS9.4&lt;/P&gt;
&lt;P&gt;I have my code below. I am trying to adjust the values on the second yaxis. Currently, the count is displayed there, which I want, but I would like to adjust the count to display more numbers. Ideally, I would like to display 1 to 15 by 1 but I have not been able to accomplish this. Any help would be appreciated. Thank you&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=heatmap_data;
    heatmapparm x=score y=Average_grade colorresponse=Count / colormodel=(blue gray red) tip=(Count);
    xaxis values=(1 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0);
    yaxis values=(1.5 2.0 2.5 3.0 3.5 4.0);
  	gradlegend / title="Count" integer;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPlot29.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100669iC4548B6B6A1D3DEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SGPlot29.png" alt="SGPlot29.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 13:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLot-heatmapparm/m-p/945194#M25056</guid>
      <dc:creator>GS2</dc:creator>
      <dc:date>2024-09-25T13:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPLot, heatmapparm</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLot-heatmapparm/m-p/945226#M25057</link>
      <description>&lt;P&gt;First thing is to change some thinking. Those numbers that appear next to the color response are not axis values but response values. So no statements that affect axis appearance will influence them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only thing I know to change the values that appear in the color response is to define a Range attribute data set with min max values appearing with color options. The min value for each range plus the largest max value then appears on the color response area.&lt;/P&gt;
&lt;P&gt;If you want a continuous ramp of colors then the end point values (the max of the lower and the min of the next) would have the same color value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you want to go from 2 to 15 displayed values that means your range attribute set would need 15 min/max pairs. Do you want to add that much work?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might be possible to create an annotate data set but that is likely going to involve a LOT of x,y coordinate guessing to display the values that do not appear on the response ranges. Which work would have to be repeated.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 16:29:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLot-heatmapparm/m-p/945226#M25057</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-09-25T16:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPLot, heatmapparm</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLot-heatmapparm/m-p/945292#M25058</link>
      <description>&lt;P&gt;Here is an example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
call streaminit(123);
do x=1 to 5;
 do y=1 to 5;
   count=rand('integer',1,15);output;
 end;
end;
run;


data rattrmap2;
id='id';
input  min $ max $ colormodel1 $ colormodel2 $ ;
cards;
1 2   CXEFF3FF   CXBDD7E7 
2 3   CXBDD7E7   CX6BAED6 
3 4   CX6BAED6   CX3182BD 
4 5   CX3182BD   CX08519C 
5 6   CX08519C   CXF7F7F7 
6 7   CXF7F7F7   CXCCCCCC 
7 8   CXCCCCCC   CX969696 
8 9   CX969696   CX636363
9 10   CX636363  CX252525 
10 11 CX252525   CXFEE5D9 
11 12 CXFEE5D9   CXFCAE91 
12 13 CXFCAE91   CXFB6A4A 
13 14 CXFB6A4A   CXDE2D26 
14 15 CXDE2D26   CXA50F15 
15 16 CXA50F15   red
;

proc sgplot data=have rattrmap=rattrmap2;
    heatmapparm x=x y=y colorresponse=Count / tip=(Count) rattrid=id;
    xaxis integer;
    yaxis integer;
/*  	gradlegend / title="Count" integer;*/
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1727319003647.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100685i0DDA1896BB1061E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1727319003647.png" alt="Ksharp_0-1727319003647.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 02:50:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLot-heatmapparm/m-p/945292#M25058</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-09-26T02:50:11Z</dc:date>
    </item>
  </channel>
</rss>

