<?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 with frequency count in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Histogram-with-frequency-count/m-p/315419#M11072</link>
    <description>&lt;P&gt;I'm not seeing an option in PROC UNIVARIATE, but SGPLOT HISTOGRAM statement has a SCALE=Count option.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc SGPLOT data=SASHELP.class;&lt;/P&gt;
&lt;P&gt;hisotgram age / scale = count;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2016 05:33:44 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-11-30T05:33:44Z</dc:date>
    <item>
      <title>Histogram with frequency count</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Histogram-with-frequency-count/m-p/315418#M11071</link>
      <description>&lt;P&gt;Hi I am using below codes to make a histogram&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc univariate data=filename noprint;&lt;BR /&gt;histogram VAR1 ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting histogram in the output but with Percentage and I want with Frequency count. Could anybody please help me on the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 05:07:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Histogram-with-frequency-count/m-p/315418#M11071</guid>
      <dc:creator>deega</dc:creator>
      <dc:date>2016-11-30T05:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram with frequency count</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Histogram-with-frequency-count/m-p/315419#M11072</link>
      <description>&lt;P&gt;I'm not seeing an option in PROC UNIVARIATE, but SGPLOT HISTOGRAM statement has a SCALE=Count option.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc SGPLOT data=SASHELP.class;&lt;/P&gt;
&lt;P&gt;hisotgram age / scale = count;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 05:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Histogram-with-frequency-count/m-p/315419#M11072</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-30T05:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram with frequency count</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Histogram-with-frequency-count/m-p/315461#M11073</link>
      <description>&lt;P&gt;The&lt;A href="http://support.sas.com/documentation/cdl/en/procstat/68142/HTML/default/viewer.htm#procstat_univariate_syntax09.htm" target="_self"&gt; documentation for the HISTOGRAM statement &lt;/A&gt;in PROC UNIVARIATE shows that you can use&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VSCALE=COUNT&lt;/P&gt;
&lt;P&gt;Other options are VSCALE=PERCENT (the default) and VSCALE=PROPORTION.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 10:28:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Histogram-with-frequency-count/m-p/315461#M11073</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-11-30T10:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram with frequency count</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Histogram-with-frequency-count/m-p/768936#M21999</link>
      <description>&lt;P&gt;&lt;SPAN&gt;In regards to the frequency count variable, is there anyway to format that variable? (eg comma format?)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 20:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Histogram-with-frequency-count/m-p/768936#M21999</guid>
      <dc:creator>arcacha</dc:creator>
      <dc:date>2021-09-21T20:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram with frequency count</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Histogram-with-frequency-count/m-p/768951#M22000</link>
      <description>&lt;P&gt;That's an interesting question. I think for large samples, most people switch to PERCENT as a scale instead of COUNT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suppose you could write the binned counts to a data set and then use a vertical bar chart:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
do i = 1 to 1e6;
   x = rand("Normal", 10, 2);
   output;
end;
run;

Proc univariate data=Have noprint;
var x;
histogram x / VSCALE=COUNT outhist=Want;
run;

proc sgplot data=Want;
format _COUNT_ comma7.;   /* apply COMMA format */
vbarbasic _MIDPT_ / response=_COUNT_;
xaxis type=linear values=(0 to 20 by 2);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Sep 2021 20:45:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Histogram-with-frequency-count/m-p/768951#M22000</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-09-21T20:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram with frequency count</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Histogram-with-frequency-count/m-p/769173#M22003</link>
      <description>That's perfect - exactly what I was look for! Pity PROC UNIVARIATE doesn't have the same functionality.&lt;BR /&gt;&lt;BR /&gt;Thanks again!</description>
      <pubDate>Wed, 22 Sep 2021 14:26:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Histogram-with-frequency-count/m-p/769173#M22003</guid>
      <dc:creator>arcacha</dc:creator>
      <dc:date>2021-09-22T14:26:07Z</dc:date>
    </item>
  </channel>
</rss>

