<?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 x-axis doesn't order properly in gplot.Any Suggestions in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/x-axis-doesn-t-order-properly-in-gplot-Any-Suggestions/m-p/147352#M262169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc gplot data=shareef.tra_pt_1m1;&lt;/P&gt;&lt;P&gt;plot mean_*day;&lt;/P&gt;&lt;P&gt;symbol value= star interpol=sm45;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my x-axis values arein order in the columneg 3,7,15,30,90,180,360,720.&lt;/P&gt;&lt;P&gt;However in the plot i see it as&lt;/P&gt;&lt;P&gt;15,180,3,30,360,7,720&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mohammed Shareef&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2014 16:15:40 GMT</pubDate>
    <dc:creator>momin</dc:creator>
    <dc:date>2014-10-29T16:15:40Z</dc:date>
    <item>
      <title>x-axis doesn't order properly in gplot.Any Suggestions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/x-axis-doesn-t-order-properly-in-gplot-Any-Suggestions/m-p/147352#M262169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc gplot data=shareef.tra_pt_1m1;&lt;/P&gt;&lt;P&gt;plot mean_*day;&lt;/P&gt;&lt;P&gt;symbol value= star interpol=sm45;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my x-axis values arein order in the columneg 3,7,15,30,90,180,360,720.&lt;/P&gt;&lt;P&gt;However in the plot i see it as&lt;/P&gt;&lt;P&gt;15,180,3,30,360,7,720&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mohammed Shareef&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 16:15:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/x-axis-doesn-t-order-properly-in-gplot-Any-Suggestions/m-p/147352#M262169</guid>
      <dc:creator>momin</dc:creator>
      <dc:date>2014-10-29T16:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: x-axis doesn't order properly in gplot.Any Suggestions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/x-axis-doesn-t-order-properly-in-gplot-Any-Suggestions/m-p/147353#M262170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps sort the input data, I know that sometimes the order is implied from the appearance in the data.&amp;nbsp; Alternatively, and my suggestion, move over to sgplot or GTL (these are the most up to date, and offer a great welth of customization), and explicitly specify all your axis.&amp;nbsp; You can find examples at: &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 16:20:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/x-axis-doesn-t-order-properly-in-gplot-Any-Suggestions/m-p/147353#M262170</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-10-29T16:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: x-axis doesn't order properly in gplot.Any Suggestions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/x-axis-doesn-t-order-properly-in-gplot-Any-Suggestions/m-p/147354#M262171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DAY must be character as this example demonstrates.&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; mean;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;infile&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;cards&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;dsd&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; nday @@;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; day = put(nday,&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;f8.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;-l);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; mean = ranuni(&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;3&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;cards&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffc0;"&gt;3,7,15,30,90,180,360,720&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;;;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;gplot&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;plot&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; mean*day;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;plot&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; mean*nday;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 16:28:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/x-axis-doesn-t-order-properly-in-gplot-Any-Suggestions/m-p/147354#M262171</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-10-29T16:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: x-axis doesn't order properly in gplot.Any Suggestions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/x-axis-doesn-t-order-properly-in-gplot-Any-Suggestions/m-p/147355#M262172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As data_null points out, your day values appear to be character, and the axis is therefore sorting alphabetically (rather than numerically). You could use 'proc contents' to verify that. You could add a numeric version of 'day' to your dataset (or add it in a temporary dataset), as follows...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data plot_data; set &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;shareef.tra_pt_1m1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;day_numeric=.; day_numeric=day;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc gplot data=plot_data;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;plot mean_*day_numeric;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;symbol value= star interpol=sm45;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 19:10:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/x-axis-doesn-t-order-properly-in-gplot-Any-Suggestions/m-p/147355#M262172</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2015-01-20T19:10:03Z</dc:date>
    </item>
  </channel>
</rss>

