<?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 adjust the number in the cell of heatmap to align center ? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-adjust-the-number-in-the-cell-of-heatmap-to-align-center/m-p/468901#M16153</link>
    <description>&lt;P&gt;Thank your for your word '&lt;SPAN&gt;STRIP&lt;/SPAN&gt;'.&amp;nbsp; &amp;nbsp;^____^&lt;/P&gt;</description>
    <pubDate>Sat, 09 Jun 2018 02:26:44 GMT</pubDate>
    <dc:creator>Cingchih</dc:creator>
    <dc:date>2018-06-09T02:26:44Z</dc:date>
    <item>
      <title>How to adjust the number in the cell of heatmap to align center ?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-adjust-the-number-in-the-cell-of-heatmap-to-align-center/m-p/468789#M16148</link>
      <description>&lt;P&gt;Recently, I draw the heatmap with proc&amp;nbsp;sgplot. I found that the every number in cell of heatmap was not align center&amp;nbsp;.&lt;/P&gt;&lt;P&gt;This condition was like this. ref: &lt;A href="https://blogs.sas.com/content/iml/2015/08/17/heat-maps-sgplot.html#comment-260274" target="_self"&gt;https://blogs.sas.com/content/iml/2015/08/17/heat-maps-sgplot.html#comment-260274&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value typefmt 1='感染類'  2='壓瘡類'  3='滑脫類'  5='跌倒類';
value quartilefmt 1='P25以前' 2='P25至P50' 3='P50至P75' 4='P75以後' ;run;
ods graphics / imagefmt=png  width=750px  height=800px  ;  
proc sgplot data=a;
heatmap x=type y=quartile / freq=count discretex discretey colormodel=(white cx3883a8 cxff0080 cxff0000 );  /*可用colorresponse=count取代前者的colormodel= */  
styleattrs backcolor=white;
gradlegend / title='freq' titleattrs=(size=12);   
text x=type y=quartile text=count /  splitjustify=center   textattrs=(size=20 color=black);
xaxis label='bbb' labelattrs=(size=12) valueattrs=(size=11);
yaxis discreteorder=data reverse label='aaa' labelattrs=(size=12) valueattrs=(size=11);
title j=c bcolor=cream 'kkkkkk';
format type typefmt.  quartile quartilefmt.;
run;title;
ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="heatmapstmt2.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21114iFC44FB701C356200/image-size/large?v=v2&amp;amp;px=999" role="button" title="heatmapstmt2.png" alt="heatmapstmt2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 16:49:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-adjust-the-number-in-the-cell-of-heatmap-to-align-center/m-p/468789#M16148</guid>
      <dc:creator>Cingchih</dc:creator>
      <dc:date>2018-06-08T16:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to adjust the number in the cell of heatmap to align center ?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-adjust-the-number-in-the-cell-of-heatmap-to-align-center/m-p/468813#M16151</link>
      <description>&lt;P&gt;Add the STRIP option to the TEXT statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;text x=type y=quartile text=count / STRIP ...etc...;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 17:41:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-adjust-the-number-in-the-cell-of-heatmap-to-align-center/m-p/468813#M16151</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-06-08T17:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to adjust the number in the cell of heatmap to align center ?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-adjust-the-number-in-the-cell-of-heatmap-to-align-center/m-p/468901#M16153</link>
      <description>&lt;P&gt;Thank your for your word '&lt;SPAN&gt;STRIP&lt;/SPAN&gt;'.&amp;nbsp; &amp;nbsp;^____^&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2018 02:26:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-adjust-the-number-in-the-cell-of-heatmap-to-align-center/m-p/468901#M16153</guid>
      <dc:creator>Cingchih</dc:creator>
      <dc:date>2018-06-09T02:26:44Z</dc:date>
    </item>
  </channel>
</rss>

