<?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: RE: Histogram of percentages (100% max) but showing 105% due to bin of 5 in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/RE-Histogram-of-percentages-100-max-but-showing-105-due-to-bin/m-p/589096#M18879</link>
    <description>&lt;P&gt;Thank you very very much Rick! You are the best!&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Tien&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2019 15:39:24 GMT</pubDate>
    <dc:creator>warriortv</dc:creator>
    <dc:date>2019-09-16T15:39:24Z</dc:date>
    <item>
      <title>RE: Histogram of percentages (100% max) but showing 105% due to bin of 5</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/RE-Histogram-of-percentages-100-max-but-showing-105-due-to-bin/m-p/588623#M18867</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm trying to run a proc univariate to get a histogram of percentages of cores positive (please see attached for the data in excel format). Included in the dataset are the percentages, with maximum percentage of 100%. However, when I tried to graph the histogram, I get 105%. I tried to modified the bin but that didn't help. Could any of you please kindly help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc univariate data=cores_positive; var percent_pos_core; histogram percent_pos_core/normal endpoints=(5 to 90) HREF=34 HREFLABELS ="34% Reference"; Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running this code, I got the figure below. I would like the 100% to be at 100%, not 105%&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="percent cores positive.GIF" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32451iC6122A039F6CC4AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="percent cores positive.GIF" alt="percent cores positive.GIF" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;Tien&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 18:26:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/RE-Histogram-of-percentages-100-max-but-showing-105-due-to-bin/m-p/588623#M18867</guid>
      <dc:creator>warriortv</dc:creator>
      <dc:date>2019-09-13T18:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: RE: Histogram of percentages (100% max) but showing 105% due to bin of 5</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/RE-Histogram-of-percentages-100-max-but-showing-105-due-to-bin/m-p/588633#M18868</link>
      <description>&lt;P&gt;By default, the bins include the left-hand endpoints&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[0, 5), [5, 10), ... [95, 100)&lt;/P&gt;
&lt;P&gt;so if there is a 100 value in the data, then the algorithm will add a new interval [100, 105).&lt;/P&gt;
&lt;P&gt;To get the bins to include the right-hand endpoint, use the RTINCLUDE option on the HISTOGRAM stmt:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
do i = 1 to 1000;
   x = rand("integer", 1, 100);
   output;
end;
run;

proc univariate data=Have;
   histogram x / endpoints=(0 to 100 by 5) rtinclude;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If your data ALSO includes the value 0, then using RTINCLUDE will add a bin at (-5, 0], but it looks like this isn't relevant to your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 19:01:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/RE-Histogram-of-percentages-100-max-but-showing-105-due-to-bin/m-p/588633#M18868</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-09-13T19:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: RE: Histogram of percentages (100% max) but showing 105% due to bin of 5</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/RE-Histogram-of-percentages-100-max-but-showing-105-due-to-bin/m-p/589096#M18879</link>
      <description>&lt;P&gt;Thank you very very much Rick! You are the best!&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Tien&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 15:39:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/RE-Histogram-of-percentages-100-max-but-showing-105-due-to-bin/m-p/589096#M18879</guid>
      <dc:creator>warriortv</dc:creator>
      <dc:date>2019-09-16T15:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: RE: Histogram of percentages (100% max) but showing 105% due to bin of 5</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/RE-Histogram-of-percentages-100-max-but-showing-105-due-to-bin/m-p/589119#M18880</link>
      <description>&lt;P&gt;For more information about setting the bins for histograms (PROC UNIVARIATE and PROC SGPLOT), see &lt;A href="https://blogs.sas.com/content/iml/2014/08/25/bins-for-histograms.html" target="_self"&gt;"Choosing bins for histograms in SAS."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 16:25:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/RE-Histogram-of-percentages-100-max-but-showing-105-due-to-bin/m-p/589119#M18880</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-09-16T16:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: RE: Histogram of percentages (100% max) but showing 105% due to bin of 5</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/RE-Histogram-of-percentages-100-max-but-showing-105-due-to-bin/m-p/589370#M18881</link>
      <description>&lt;P&gt;Thank you Rick for posting more information on proc univariate and proc sgplot!&lt;/P&gt;&lt;P&gt;Tien&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 14:14:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/RE-Histogram-of-percentages-100-max-but-showing-105-due-to-bin/m-p/589370#M18881</guid>
      <dc:creator>warriortv</dc:creator>
      <dc:date>2019-09-17T14:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: RE: Histogram of percentages (100% max) but showing 105% due to bin of 5</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/RE-Histogram-of-percentages-100-max-but-showing-105-due-to-bin/m-p/591123#M18901</link>
      <description>&lt;P&gt;Has this question been resolved? If so, please close the thread and indicate the correct answer.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 10:26:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/RE-Histogram-of-percentages-100-max-but-showing-105-due-to-bin/m-p/591123#M18901</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-09-24T10:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: RE: Histogram of percentages (100% max) but showing 105% due to bin of 5</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/RE-Histogram-of-percentages-100-max-but-showing-105-due-to-bin/m-p/591167#M18904</link>
      <description>&lt;P&gt;Thanks Rick! It's been resolved. I have marked your reply as the solution.&lt;/P&gt;&lt;P&gt;Tien&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 14:30:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/RE-Histogram-of-percentages-100-max-but-showing-105-due-to-bin/m-p/591167#M18904</guid>
      <dc:creator>warriortv</dc:creator>
      <dc:date>2019-09-24T14:30:20Z</dc:date>
    </item>
  </channel>
</rss>

