<?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 Multiple X axis in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-X-axis/m-p/250622#M9082</link>
    <description>&lt;P&gt;Hi all!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to make a graph: in the x axis i want to put month and lower year, and in Y axis rate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I do it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 17 Feb 2016 14:20:43 GMT</pubDate>
    <dc:creator>viollete</dc:creator>
    <dc:date>2016-02-17T14:20:43Z</dc:date>
    <item>
      <title>Multiple X axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-X-axis/m-p/250622#M9082</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to make a graph: in the x axis i want to put month and lower year, and in Y axis rate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I do it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 14:20:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-X-axis/m-p/250622#M9082</guid>
      <dc:creator>viollete</dc:creator>
      <dc:date>2016-02-17T14:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple X axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-X-axis/m-p/250623#M9083</link>
      <description>&lt;P&gt;Do you mean multiple X axis or multiple labels on the X axis?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It helps if you show a picture and sample data that mimics your data.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 14:30:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-X-axis/m-p/250623#M9083</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-17T14:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple X axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-X-axis/m-p/250625#M9084</link>
      <description>&lt;P&gt;Try this and see if this is what you want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc sgplot data=sashelp.air; &lt;BR /&gt;where date between '01jan1955'd and '01jan1957'd; &lt;BR /&gt;series x=date y=air; &lt;BR /&gt;run;&lt;BR /&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 14:33:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-X-axis/m-p/250625#M9084</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-02-17T14:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple X axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-X-axis/m-p/250629#M9085</link>
      <description>I have one variable that indicates month(1,2,3,4,5,..) and i have one variable that indicate year (2008, 2009,...). I want to see months and below each January (that would be 1) to see year</description>
      <pubDate>Wed, 17 Feb 2016 14:43:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-X-axis/m-p/250629#M9085</guid>
      <dc:creator>viollete</dc:creator>
      <dc:date>2016-02-17T14:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple X axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-X-axis/m-p/250689#M9086</link>
      <description>&lt;P&gt;I think the easiest way to handle this case is to combine the two variables into a SAS date variable and use that variable in SGPLOT. Here is a simple example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;data datedata; &lt;BR /&gt;format newdate monyy.; &lt;BR /&gt;do year=2000 to 2002; &lt;BR /&gt; &amp;nbsp;&amp;nbsp;do month=1 to 12; &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;newdate = mdy(month,01,year); &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;y=ranuni(123); &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;output; &lt;BR /&gt; &amp;nbsp;&amp;nbsp;end; &lt;BR /&gt;end; &lt;BR /&gt;run; &lt;BR /&gt; &lt;BR /&gt;proc sgplot data=datedata; &lt;BR /&gt;scatter x=newdate y=y; &lt;BR /&gt;run;&lt;BR /&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 19:55:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-X-axis/m-p/250689#M9086</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-02-17T19:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple X axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-X-axis/m-p/250784#M9087</link>
      <description>Thanks, but it doesn't do what i want, it shows just years, but I want to see months and years</description>
      <pubDate>Thu, 18 Feb 2016 09:23:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-X-axis/m-p/250784#M9087</guid>
      <dc:creator>viollete</dc:creator>
      <dc:date>2016-02-18T09:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple X axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-X-axis/m-p/250799#M9088</link>
      <description>&lt;P&gt;Your data must contain at least several years worth the information. The system determined that the best format for your time axis was years. You can force it to months by adding this statement to your SGPLOT code;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;xaxis interval=month;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 12:53:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-X-axis/m-p/250799#M9088</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-02-18T12:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple X axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-X-axis/m-p/250805#M9089</link>
      <description>Sorry, it still doesnt work as I would like..it put year below month but I get this: 2008 below JAN, 2009 below APR, 2010 below FEB.....and I would love it to be like this:&lt;BR /&gt;2008 below JAN, 2009 below JAN, 2010 below JAN&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Feb 2016 13:26:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-X-axis/m-p/250805#M9089</guid>
      <dc:creator>viollete</dc:creator>
      <dc:date>2016-02-18T13:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple X axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-X-axis/m-p/251307#M9096</link>
      <description>&lt;P&gt;Hmmm.. &amp;nbsp;I'm not sure how you would get behavior. When I run the code I gave you from 2000 to 2005, I get the attached picture. Can you show us your SGPLOT code (without the data)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12292i417C2CDD354B5589/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="dates1.png" title="dates1.png" /&gt;</description>
      <pubDate>Fri, 19 Feb 2016 22:44:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-X-axis/m-p/251307#M9096</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-02-19T22:44:09Z</dc:date>
    </item>
  </channel>
</rss>

