<?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: how to control the size of boxes/tiles in HEATMAP Plot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/how-to-control-the-size-of-boxes-tiles-in-HEATMAP-Plot/m-p/412669#M14165</link>
    <description>&lt;P&gt;Hi Warren,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp; for your suggestion.&lt;/P&gt;&lt;P&gt;I changed the design height and width in code and&amp;nbsp; it's changing the boxes/tiles but making graph bigger. My aim to keep graph's dimension&amp;nbsp;as it is and at same time want to change the boxes/size without changing the dimension of graph. For example: keep the 53 boxes and just change the box size (horizontal rectangle) with out changing the graph dimension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In attached output,I want to keep the same symbol/rectangle boxes and just want to reduce the size of it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 12 Nov 2017 08:12:53 GMT</pubDate>
    <dc:creator>manoj_pandey</dc:creator>
    <dc:date>2017-11-12T08:12:53Z</dc:date>
    <item>
      <title>how to control the size of boxes/tiles in HEATMAP Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-control-the-size-of-boxes-tiles-in-HEATMAP-Plot/m-p/412613#M14161</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am using SAS 9.4 to generate a Heatmap plot through SAS GTL code and want to control the size of boxes/tiles.&lt;/P&gt;&lt;P&gt;Please let me know options/statement to for the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro RandBetween(min, max);
(&amp;amp;min + floor((1+&amp;amp;max-&amp;amp;min)*rand("uniform")))
%mend;

data test (drop=i);
do emp = 1 to 7 ;
do i = '01JAN2017'd to '31DEC2017'd;
date=i;
value = %RandBetween(0, 100);
day = day (date);
weekday = weekday (date);
week = week (date);
month =month (date);
format date Date7.;
output ;
end;end;
run;
&amp;nbsp;proc sort data = test;
 by emp week month ;
run;

proc univariate data = test ;
 by emp week month;
 var value ;
 output out=teststat mean=mean1 ;
run;

data teststat1;
 set teststat;
 if mean1 &amp;lt;= 0 then cat = 0;
 else if 0&amp;lt;mean1 &amp;lt;= 25 then cat = 1;
 else if 25 &amp;lt; mean1 &amp;lt;=50 then cat = 2;
 else if 50 &amp;lt; mean1 &amp;lt;= 75 then cat = 3;
 else if 75 &amp;lt; mean1 &amp;lt;= 100 then cat = 4;
run;
proc template;
define statgraph heatmap;
begingraph / designheight=150 designwidth=1000 pad=0;
rangeattrmap name="rmap";
range min - max / rangecolormodel=( darkred red yellow green darkgreen);
endrangeattrmap;
rangeattrvar attrmap="rmap" var=cat attrvar=cat;
layout overlay / yaxisopts=(offsetmin=0.02 display=(ticks tickvalues line) tickvalueattrs=(size=8)) 
xaxisopts =(offsetmin=0.02 display=(ticks tickvalues line) 
linearopts=( viewmin=1 viewmax=54 tickvaluelist=(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53)) 
tickvalueattrs=(size=3));

heatmapparm x=week y=emp colorresponse=cat / name="heatmap" xgap=0 ygap=0 display=(fill outline) outlineattrs=(color=black);
continuouslegend "heatmap" / valueattrs=(size=8) ;
endlayout;
endgraph;
end;
run;
proc sgrender data=teststat1 template=heatmap; run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2017 22:27:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-control-the-size-of-boxes-tiles-in-HEATMAP-Plot/m-p/412613#M14161</guid>
      <dc:creator>manoj_pandey</dc:creator>
      <dc:date>2017-11-11T22:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to control the size of boxes/tiles in HEATMAP Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-control-the-size-of-boxes-tiles-in-HEATMAP-Plot/m-p/412615#M14162</link>
      <description>&lt;P&gt;Change your design height and width.&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;begingraph &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; designheight&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;150&lt;/SPAN&gt; designwidth&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1000&lt;/SPAN&gt; pad&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2017 22:52:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-control-the-size-of-boxes-tiles-in-HEATMAP-Plot/m-p/412615#M14162</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-11-11T22:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to control the size of boxes/tiles in HEATMAP Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-control-the-size-of-boxes-tiles-in-HEATMAP-Plot/m-p/412669#M14165</link>
      <description>&lt;P&gt;Hi Warren,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp; for your suggestion.&lt;/P&gt;&lt;P&gt;I changed the design height and width in code and&amp;nbsp; it's changing the boxes/tiles but making graph bigger. My aim to keep graph's dimension&amp;nbsp;as it is and at same time want to change the boxes/size without changing the dimension of graph. For example: keep the 53 boxes and just change the box size (horizontal rectangle) with out changing the graph dimension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In attached output,I want to keep the same symbol/rectangle boxes and just want to reduce the size of it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Nov 2017 08:12:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-control-the-size-of-boxes-tiles-in-HEATMAP-Plot/m-p/412669#M14165</guid>
      <dc:creator>manoj_pandey</dc:creator>
      <dc:date>2017-11-12T08:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to control the size of boxes/tiles in HEATMAP Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-control-the-size-of-boxes-tiles-in-HEATMAP-Plot/m-p/412676#M14166</link>
      <description>&lt;P&gt;Then leave the design sizes alone and change the offsetmin and offsetmax in your x and y axis options.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Nov 2017 10:50:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-control-the-size-of-boxes-tiles-in-HEATMAP-Plot/m-p/412676#M14166</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-11-12T10:50:35Z</dc:date>
    </item>
  </channel>
</rss>

