<?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: Histogram / adjust the overall size of the whole plot and custom labels on Y axis in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Histogram-adjust-the-overall-size-of-the-whole-plot-and-custom/m-p/516088#M139365</link>
    <description>&lt;P&gt;Use the ODS GRAPHICS statement to set the vertical size of the plot.&lt;/P&gt;
&lt;P&gt;Use PROC FORMAT to define the categories that you want to use for the GROUP=1 to 6 values:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
do GROUP = 1 to 6;
   do j = 1 to 50;
      VALUES = rand("Normal", Group);
      output;
   end;
end;
run;

proc format;
value TumorFmt  
      1 = "Benign"
      2 = "Cat 2"
      3 = "Next Value"
      4 = "Another"
      5 = "Almost There"
      6 = "Malignant";
run;

ods graphics / height=1000px width=400px;
proc univariate data=HAVE noprint;
   format GROUP TumorFmt.;
   class GROUP;
   histogram VALUES/ nrows = 6
                     vaxis      =   0  to 100  by  10;
   inset median mean std / pos = ne format = 6.3;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 26 Nov 2018 19:17:21 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2018-11-26T19:17:21Z</dc:date>
    <item>
      <title>Histogram / adjust the overall size of the whole plot and custom labels on Y axis</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-adjust-the-overall-size-of-the-whole-plot-and-custom/m-p/516065#M139356</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This histogram is not going my way. I'd like to achieve:&lt;/P&gt;
&lt;P&gt;- present the all rows taller so Y-axis would show 0 through 100 by increasing the vertical dimension of the whole plot.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;customize and label GROUPS so it will appear as "benign" instead group=6 and "malignant" instead group=5 so forth so on for all groups.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You help will be greatly appreciated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc univariate data=HAVE noprint;
   class GROUP;
   histogram VALUES/ nrows = 6
                     vaxis      =   0  to 100  by  1;
   inset median mean std / pos = ne format = 6.3;
run;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; Have&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
do &lt;SPAN class="token keyword"&gt;GROUP&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;1&lt;/SPAN&gt; to &lt;SPAN class="token number"&gt;6&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
   do j &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;1&lt;/SPAN&gt; to &lt;SPAN class="token number"&gt;50&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
      VALUES &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;rand&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"Normal"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;Group&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
      output&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
   end&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
end&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&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>Fri, 07 Dec 2018 17:26:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-adjust-the-overall-size-of-the-whole-plot-and-custom/m-p/516065#M139356</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-12-07T17:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram / adjust the overall size of the whole plot and custom labels on Y axis</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-adjust-the-overall-size-of-the-whole-plot-and-custom/m-p/516088#M139365</link>
      <description>&lt;P&gt;Use the ODS GRAPHICS statement to set the vertical size of the plot.&lt;/P&gt;
&lt;P&gt;Use PROC FORMAT to define the categories that you want to use for the GROUP=1 to 6 values:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
do GROUP = 1 to 6;
   do j = 1 to 50;
      VALUES = rand("Normal", Group);
      output;
   end;
end;
run;

proc format;
value TumorFmt  
      1 = "Benign"
      2 = "Cat 2"
      3 = "Next Value"
      4 = "Another"
      5 = "Almost There"
      6 = "Malignant";
run;

ods graphics / height=1000px width=400px;
proc univariate data=HAVE noprint;
   format GROUP TumorFmt.;
   class GROUP;
   histogram VALUES/ nrows = 6
                     vaxis      =   0  to 100  by  10;
   inset median mean std / pos = ne format = 6.3;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Nov 2018 19:17:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-adjust-the-overall-size-of-the-whole-plot-and-custom/m-p/516088#M139365</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-11-26T19:17:21Z</dc:date>
    </item>
  </channel>
</rss>

