<?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 SAS Graph - Axis Question in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-Axis-Question/m-p/72081#M2583</link>
    <description>Guys - &lt;BR /&gt;
&lt;BR /&gt;
If i have a Graph with values say;&lt;BR /&gt;
&lt;BR /&gt;
a &lt;BR /&gt;
60&lt;BR /&gt;
70&lt;BR /&gt;
60&lt;BR /&gt;
100&lt;BR /&gt;
120&lt;BR /&gt;
110&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I plot these on a bar graph with a on the Y Axis - is there a way i can format the axis to show the minimum at 40?&lt;BR /&gt;
&lt;BR /&gt;
IS this possible at all?</description>
    <pubDate>Thu, 02 Jun 2011 16:18:43 GMT</pubDate>
    <dc:creator>ace2011</dc:creator>
    <dc:date>2011-06-02T16:18:43Z</dc:date>
    <item>
      <title>SAS Graph - Axis Question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-Axis-Question/m-p/72081#M2583</link>
      <description>Guys - &lt;BR /&gt;
&lt;BR /&gt;
If i have a Graph with values say;&lt;BR /&gt;
&lt;BR /&gt;
a &lt;BR /&gt;
60&lt;BR /&gt;
70&lt;BR /&gt;
60&lt;BR /&gt;
100&lt;BR /&gt;
120&lt;BR /&gt;
110&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I plot these on a bar graph with a on the Y Axis - is there a way i can format the axis to show the minimum at 40?&lt;BR /&gt;
&lt;BR /&gt;
IS this possible at all?</description>
      <pubDate>Thu, 02 Jun 2011 16:18:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-Axis-Question/m-p/72081#M2583</guid>
      <dc:creator>ace2011</dc:creator>
      <dc:date>2011-06-02T16:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Graph - Axis Question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-Axis-Question/m-p/72082#M2584</link>
      <description>By default, gchart included zero in the response axis, and it is generally the "best practice" to do that.&lt;BR /&gt;
&lt;BR /&gt;
SAS does provide a way to over-ride the default with an axis statement (but make sure this is really/really/really sure this is what you want to do, and is a good way to display your data, before doing it!)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data foo;&lt;BR /&gt;
barnum=_n_;&lt;BR /&gt;
input a;&lt;BR /&gt;
datalines;&lt;BR /&gt;
60&lt;BR /&gt;
70&lt;BR /&gt;
60&lt;BR /&gt;
100&lt;BR /&gt;
120&lt;BR /&gt;
110&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
axis1 order=(40 to 150 by 10);&lt;BR /&gt;
proc gchart data=foo;&lt;BR /&gt;
vbar barnum / discrete&lt;BR /&gt;
 type=sum sumvar=a raxis=axis1;&lt;BR /&gt;
run;</description>
      <pubDate>Thu, 02 Jun 2011 17:12:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-Axis-Question/m-p/72082#M2584</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2011-06-02T17:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Graph - Axis Question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-Axis-Question/m-p/72083#M2585</link>
      <description>Just in case your using SGPLOT for this, I modified Robert's example to show you how you would do it.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data foo;&lt;BR /&gt;
barnum=_n_;&lt;BR /&gt;
input a;&lt;BR /&gt;
datalines;&lt;BR /&gt;
60&lt;BR /&gt;
70&lt;BR /&gt;
60&lt;BR /&gt;
100&lt;BR /&gt;
120&lt;BR /&gt;
110&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc sgplot data=foo;&lt;BR /&gt;
yaxis min=40;&lt;BR /&gt;
vbar barnum / response=a;&lt;BR /&gt;
run; &lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 02 Jun 2011 21:26:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-Axis-Question/m-p/72083#M2585</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2011-06-02T21:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Graph - Axis Question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-Axis-Question/m-p/72084#M2586</link>
      <description>Ace:&lt;BR /&gt;
&lt;BR /&gt;
Rob is letting you off easy with respect to the bar chart not startng at zero.  Here's why it must start at zero:&lt;BR /&gt;
&lt;BR /&gt;
Bar Chart Value Axis Scale Must Include Zero&lt;BR /&gt;
by Jon Peltier&lt;BR /&gt;
Wednesday, March 30th, 2011&lt;BR /&gt;
Peltier Technical Services, Inc., Copyright © 2011.&lt;BR /&gt;
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://peltiertech.com/WordPress/bar-chart-value-axis-scale-must-include-zero/#ixzz1OF1FUIkt" target="_blank"&gt;http://peltiertech.com/WordPress/bar-chart-value-axis-scale-must-include-zero/#ixzz1OF1FUIkt&lt;/A&gt;.  &lt;BR /&gt;
&lt;BR /&gt;
Remember the cardinal rule about bar charts and axis scales? Because we judge the values in a bar chart by the lengths of the bars, not by the positions of the ends of the bars, the axis scale must include zero. By chopping off the bottoms of the bars, we increase the resolution of the chart, but we distort the apparent values encoded by the bars. I’ll repeat:    The value axis of a bar chart must include the value zero.&lt;BR /&gt;
&lt;BR /&gt;
Bill</description>
      <pubDate>Fri, 03 Jun 2011 19:04:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graph-Axis-Question/m-p/72084#M2586</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2011-06-03T19:04:58Z</dc:date>
    </item>
  </channel>
</rss>

