<?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: proc SGPLOT HEATMAP How to display EVERY value on Y-AXIS in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/proc-SGPLOT-HEATMAP-How-to-display-EVERY-value-on-Y-AXIS/m-p/918232#M24410</link>
    <description>&lt;P&gt;PX is often a poor unit to use for graph size as it is dependent on a rendering device display settings. What may appear reasonable on one screen can become extremely large (low resolution screen) or small (very high resolution screen) when shown on another device.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more understandable units use CM MM or IN so a human has a chance of understanding what size you intend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2024 15:22:06 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-02-28T15:22:06Z</dc:date>
    <item>
      <title>proc SGPLOT HEATMAP How to display EVERY value on Y-AXIS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-SGPLOT-HEATMAP-How-to-display-EVERY-value-on-Y-AXIS/m-p/918211#M24406</link>
      <description>&lt;PRE&gt;&lt;CODE class=""&gt;proc freq data=r.fac2;
tables facility*year / norow nocol nopct
   sparse out=FreqOut(where=(percent^=.));
run;
proc print data=FreqOut;
var facility year Count;
run;
/* Create heat maps of the tabular results */
ods graphics / width=400px;
title "shoes in Facility by Year ";
title2 "sneakers (N=5952)"; 
/* basic heat map */
proc sgplot data=FreqOut;
heatmap x=year y=facility / freq=Count 
         discretex discretey
         colormodel=(green redTwoColorRamp)outline;
run;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="msrenee1984_0-1709125817258.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94198i002228436FBE7936/image-size/medium?v=v2&amp;amp;px=400" role="button" title="msrenee1984_0-1709125817258.png" alt="msrenee1984_0-1709125817258.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&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="msrenee1984_1-1709125880303.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94199i437CE1EB83C89FAE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="msrenee1984_1-1709125880303.png" alt="msrenee1984_1-1709125880303.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 13:21:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-SGPLOT-HEATMAP-How-to-display-EVERY-value-on-Y-AXIS/m-p/918211#M24406</guid>
      <dc:creator>msrenee1984</dc:creator>
      <dc:date>2024-02-28T13:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: proc SGPLOT HEATMAP How to display EVERY value on Y-AXIS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-SGPLOT-HEATMAP-How-to-display-EVERY-value-on-Y-AXIS/m-p/918221#M24407</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/408219"&gt;@msrenee1984&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can increase the height of the plot (and thus the length of the y-axis) by adding the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p0kroq43yu0lspn16hk1u4c65lti.htm#n19zh3fg7rai9xn1brgrm1vjr2wy" target="_blank" rel="noopener"&gt;HEIGHT= option&lt;/A&gt; (with a suitable value) to the ODS GRAPHICS statement, e.g.&lt;/P&gt;
&lt;PRE&gt;ods graphics / width=400px &lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;height=1000px&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;/PRE&gt;
&lt;P&gt;and/or decrease the font size of the tick mark labels by specifying a smaller value in the SIZE= suboption of the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n0n6uml63c6h8dn16phbd1arm9g9.htm#p0x61kjcdvw8t2n18r9i3ehfb6ajb" target="_blank" rel="noopener"&gt;VALUEATTRS= option&lt;/A&gt; of the YAXIS statement, e.g.&lt;/P&gt;
&lt;PRE&gt;yaxis valueattrs=(&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;size=6pt&lt;/FONT&gt;&lt;/STRONG&gt;);&lt;/PRE&gt;
&lt;P&gt;(to be inserted in your PROC SGPLOT step).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to change the order of the tick marks (note that the facilities with count=0 in 2019 appear at the top, which you may or may not like), add a &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n0n6uml63c6h8dn16phbd1arm9g9.htm#n09f4ln7jq8gkan1w2nhlkzjcrqzb" target="_blank" rel="noopener"&gt;VALUES= option&lt;/A&gt; to the YAXIS statement. You can create the list for this option, e.g., with SELECT INTO in PROC SQL, so you don't need to type all those names (or numbers if they are formatted values).&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 15:08:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-SGPLOT-HEATMAP-How-to-display-EVERY-value-on-Y-AXIS/m-p/918221#M24407</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2024-02-28T15:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: proc SGPLOT HEATMAP How to display EVERY value on Y-AXIS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-SGPLOT-HEATMAP-How-to-display-EVERY-value-on-Y-AXIS/m-p/918229#M24408</link>
      <description>&lt;P&gt;first: thank you very much for responding! your solution solved my missing Y-axis problem!! however now the years are hidden on the X-axis.&amp;nbsp; Can you check over my code I'm sure I've written something incorrectly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Create heat maps of the tabular results */&lt;BR /&gt;ods graphics / width=400px height=2000px;&lt;BR /&gt;title "apples Per Facility by Year ";&lt;BR /&gt;title2 "apple Counts (N=5952)";&lt;BR /&gt;/* basic heat map */&lt;BR /&gt;proc sgplot data=FreqOut;&lt;BR /&gt;heatmap x=year y=facility / freq=Count&lt;BR /&gt;discretex discretey colormodel=(green redTwoColorRamp)outline ;&lt;BR /&gt;yaxis label='Facility Name' valueattrs=(size=6pt) labelattrs=(size=7pt);&lt;BR /&gt;xaxis label='year' valueattrs=(size=6pt) labelattrs=(size=7pt);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="msrenee1984_0-1709132837757.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94200i56044C4EDBD01647/image-size/medium?v=v2&amp;amp;px=400" role="button" title="msrenee1984_0-1709132837757.png" alt="msrenee1984_0-1709132837757.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 15:08:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-SGPLOT-HEATMAP-How-to-display-EVERY-value-on-Y-AXIS/m-p/918229#M24408</guid>
      <dc:creator>msrenee1984</dc:creator>
      <dc:date>2024-02-28T15:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: proc SGPLOT HEATMAP How to display EVERY value on Y-AXIS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-SGPLOT-HEATMAP-How-to-display-EVERY-value-on-Y-AXIS/m-p/918230#M24409</link>
      <description>&lt;P&gt;I think now you need to increase the WIDTH value in the ODS GRAPHICS statement.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 15:16:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-SGPLOT-HEATMAP-How-to-display-EVERY-value-on-Y-AXIS/m-p/918230#M24409</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2024-02-28T15:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: proc SGPLOT HEATMAP How to display EVERY value on Y-AXIS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-SGPLOT-HEATMAP-How-to-display-EVERY-value-on-Y-AXIS/m-p/918232#M24410</link>
      <description>&lt;P&gt;PX is often a poor unit to use for graph size as it is dependent on a rendering device display settings. What may appear reasonable on one screen can become extremely large (low resolution screen) or small (very high resolution screen) when shown on another device.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more understandable units use CM MM or IN so a human has a chance of understanding what size you intend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 15:22:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-SGPLOT-HEATMAP-How-to-display-EVERY-value-on-Y-AXIS/m-p/918232#M24410</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-02-28T15:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: proc SGPLOT HEATMAP How to display EVERY value on Y-AXIS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-SGPLOT-HEATMAP-How-to-display-EVERY-value-on-Y-AXIS/m-p/918277#M24411</link>
      <description>this resolved my issue thank you!!</description>
      <pubDate>Wed, 28 Feb 2024 18:04:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-SGPLOT-HEATMAP-How-to-display-EVERY-value-on-Y-AXIS/m-p/918277#M24411</guid>
      <dc:creator>msrenee1984</dc:creator>
      <dc:date>2024-02-28T18:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc SGPLOT HEATMAP How to display EVERY value on Y-AXIS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-SGPLOT-HEATMAP-How-to-display-EVERY-value-on-Y-AXIS/m-p/918278#M24412</link>
      <description>thank you it reads much better now!</description>
      <pubDate>Wed, 28 Feb 2024 18:04:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-SGPLOT-HEATMAP-How-to-display-EVERY-value-on-Y-AXIS/m-p/918278#M24412</guid>
      <dc:creator>msrenee1984</dc:creator>
      <dc:date>2024-02-28T18:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: proc SGPLOT HEATMAP How to display EVERY value on Y-AXIS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-SGPLOT-HEATMAP-How-to-display-EVERY-value-on-Y-AXIS/m-p/918289#M24413</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/408219"&gt;@msrenee1984&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;this resolved my issue thank you!!&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Glad to hear this. You're welcome. Actually, for later readers of this thread it would make more sense if my first reply was marked as the solution, not the second one. May I ask you to change that? It's quite easy:&amp;nbsp;Select the other post&amp;nbsp;as the solution after clicking&amp;nbsp;"Not the Solution" in the option menu (see icon below) of the current solution.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="show_option_menu.png" style="width: 155px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94213i2CEB06261E187F52/image-size/large?v=v2&amp;amp;px=999" role="button" title="show_option_menu.png" alt="show_option_menu.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 18:41:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-SGPLOT-HEATMAP-How-to-display-EVERY-value-on-Y-AXIS/m-p/918289#M24413</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2024-02-28T18:41:05Z</dc:date>
    </item>
  </channel>
</rss>

