<?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: Histograms - add axis label and specify endpoints in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Histograms-add-axis-label-and-specify-endpoints/m-p/358595#M12465</link>
    <description>&lt;P&gt;Yes. You can control the location of the ticks and whether the labels occur at the end of the bins or in the middle of a bin. Follow the instructions and examples at &lt;A href="http://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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The same examp[le shows how to display titles In PROC UNIVARIATE by using the ODSTITLE= and ODSTITLE2= options.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can refer to the contents of the TITLE and TITLE2 global statements, our you can specify a string:&lt;/P&gt;
&lt;P&gt;histogram X / odstitle="Main title" odstitle2="minor title";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 14 May 2017 19:29:34 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-05-14T19:29:34Z</dc:date>
    <item>
      <title>Histograms - add axis label and specify endpoints</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Histograms-add-axis-label-and-specify-endpoints/m-p/358588#M12460</link>
      <description>&lt;P&gt;Hi I'm trying to produce a histogram within SAS for education.&lt;/P&gt;
&lt;P&gt;I tried using&amp;nbsp;proc sgplot but was unable to make the intervals at the edges not the centre.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I tried using&amp;nbsp;proc univariate but was unable to label my axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to do both?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc univariate data=SASUSER.DATA1;&lt;BR /&gt;histogram sales2015 / endpoints=(0 to 16000 by 2000);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=SASUSER.DATA1;&lt;/P&gt;
&lt;P&gt;histogram sales2015 / nbins=7 binstart=1000 binwidth=2000 SHOWBINS ;&lt;BR /&gt;xaxis label="Sales in 2015";&lt;/P&gt;
&lt;P&gt;yaxis grid;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2017 19:22:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Histograms-add-axis-label-and-specify-endpoints/m-p/358588#M12460</guid>
      <dc:creator>rebeccabarton</dc:creator>
      <dc:date>2017-05-14T19:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Histograms - add axis label and specify endpoints</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Histograms-add-axis-label-and-specify-endpoints/m-p/358590#M12461</link>
      <description>&lt;P&gt;Your xaxis? Apply a label to the variable and it will pass through to the PROC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;label sales2015 = 'My axis title';
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 14 May 2017 19:22:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Histograms-add-axis-label-and-specify-endpoints/m-p/358590#M12461</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-14T19:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Histograms - add axis label and specify endpoints</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Histograms-add-axis-label-and-specify-endpoints/m-p/358591#M12462</link>
      <description>&lt;P&gt;Note: I've moved your post to the Graphs forum as it relates more to graphing than SAS Studio and I have changed your subject line to be more descriptive. You can undo any of these changes if you feel they are not appropriate.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2017 19:23:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Histograms-add-axis-label-and-specify-endpoints/m-p/358591#M12462</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-14T19:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Histograms - add axis label and specify endpoints</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Histograms-add-axis-label-and-specify-endpoints/m-p/358592#M12463</link>
      <description>&lt;P&gt;Thanks, this is perfect. Is it also possible to change my chart title?&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2017 19:24:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Histograms-add-axis-label-and-specify-endpoints/m-p/358592#M12463</guid>
      <dc:creator>rebeccabarton</dc:creator>
      <dc:date>2017-05-14T19:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Histograms - add axis label and specify endpoints</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Histograms-add-axis-label-and-specify-endpoints/m-p/358594#M12464</link>
      <description>&lt;P&gt;Sure. In the HISTOGRAM statement you can add the ODSTITLE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;histogram .... / endpoints=(....) odstitle = 'MY GRAPH TITLE';&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 14 May 2017 19:27:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Histograms-add-axis-label-and-specify-endpoints/m-p/358594#M12464</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-14T19:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Histograms - add axis label and specify endpoints</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Histograms-add-axis-label-and-specify-endpoints/m-p/358595#M12465</link>
      <description>&lt;P&gt;Yes. You can control the location of the ticks and whether the labels occur at the end of the bins or in the middle of a bin. Follow the instructions and examples at &lt;A href="http://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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The same examp[le shows how to display titles In PROC UNIVARIATE by using the ODSTITLE= and ODSTITLE2= options.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can refer to the contents of the TITLE and TITLE2 global statements, our you can specify a string:&lt;/P&gt;
&lt;P&gt;histogram X / odstitle="Main title" odstitle2="minor title";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2017 19:29:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Histograms-add-axis-label-and-specify-endpoints/m-p/358595#M12465</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-05-14T19:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Histograms - add axis label and specify endpoints</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Histograms-add-axis-label-and-specify-endpoints/m-p/358596#M12466</link>
      <description>&lt;P&gt;thank you so much,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry final question, is it possible to just display the histogram and not all the additional data?&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2017 19:47:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Histograms-add-axis-label-and-specify-endpoints/m-p/358596#M12466</guid>
      <dc:creator>rebeccabarton</dc:creator>
      <dc:date>2017-05-14T19:47:19Z</dc:date>
    </item>
  </channel>
</rss>

