<?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: controlling the axes range with sgplot in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/controlling-the-axes-range-with-sgplot/m-p/552156#M9118</link>
    <description>&lt;P&gt;In many procedures certain statements are expected only once. In which case it appears that most often the LAST one appearing the code will be applied.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try commenting out the XAXIS with the label and see what happens. Likely get the range but the label will default back to the variable name.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2019 15:04:13 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-04-18T15:04:13Z</dc:date>
    <item>
      <title>controlling the axes range with sgplot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/controlling-the-axes-range-with-sgplot/m-p/551890#M9065</link>
      <description>&lt;P&gt;I am trying to control the range of the axe, (SAS 9.4), but the range is still set automatically. The code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=GAL.DIET_OBESITY_CORR;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xaxis values=(0 to 60 by 10);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yaxis values=(0 to 70 by 10);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xaxis label="low vegetable eaters,%";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yaxis label="low fruits eaters, %";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scatter x=little_vegetables y=little_fruits;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ellipse x=little_vegetables y=little_fruits&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /lineattrs=GraphData1 (thickness=3);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also does’t work:&lt;/P&gt;&lt;P&gt;xaxis min=0 xaxis max=60;&lt;/P&gt;&lt;P&gt;yaxis min=0 yaxis max=70;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is in particular confusing, since the example based on &lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2012/01/19/they-go-where-you-put-them/" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/graphicallyspeaking/2012/01/19/they-go-where-you-put-them/&lt;/A&gt; does work, I can play with the range and get the axes as defined by the code:&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xaxis values=(0 to 60 by 10);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yaxis values=(0 to 70 by 10);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scatter x=weight y=height / group=sex datalabel=weight;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone can spot the problem?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 20:56:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/controlling-the-axes-range-with-sgplot/m-p/551890#M9065</guid>
      <dc:creator>GAL</dc:creator>
      <dc:date>2019-04-17T20:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: controlling the axes range with sgplot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/controlling-the-axes-range-with-sgplot/m-p/552073#M9104</link>
      <description>&lt;P&gt;You have multiple XAXIS statements. The second XAXIS statement overwrites and eliminates the first XAXIS statement. Same for YAXIS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Put all XAXIS options in one statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  xaxis values=(0 to 60 by 10) label="low vegetable eaters,%";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Apr 2019 12:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/controlling-the-axes-range-with-sgplot/m-p/552073#M9104</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-04-18T12:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: controlling the axes range with sgplot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/controlling-the-axes-range-with-sgplot/m-p/552156#M9118</link>
      <description>&lt;P&gt;In many procedures certain statements are expected only once. In which case it appears that most often the LAST one appearing the code will be applied.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try commenting out the XAXIS with the label and see what happens. Likely get the range but the label will default back to the variable name.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 15:04:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/controlling-the-axes-range-with-sgplot/m-p/552156#M9118</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-04-18T15:04:13Z</dc:date>
    </item>
  </channel>
</rss>

