<?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: sgplot - order yaxis in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-order-yaxis/m-p/552664#M18021</link>
    <description>Are both variables numeric? It probably has a linear y axis so the discrete order option would do nothing. Try adding type=discrete to the yaxis statement.</description>
    <pubDate>Sun, 21 Apr 2019 02:14:34 GMT</pubDate>
    <dc:creator>JeffMeyers</dc:creator>
    <dc:date>2019-04-21T02:14:34Z</dc:date>
    <item>
      <title>sgplot - order yaxis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-order-yaxis/m-p/552662#M18019</link>
      <description>&lt;P&gt;completely flummoxed (guessing it's something really simple) - why doesn't this order by the data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test;&lt;BR /&gt;input id value;&lt;BR /&gt;cards;&lt;BR /&gt;id value &lt;BR /&gt;1 8.8 &lt;BR /&gt;2 24 &lt;BR /&gt;3 15 &lt;BR /&gt;4 7.0 &lt;BR /&gt;5 15.7 &lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;proc sort data=test; by id; run;&lt;/P&gt;
&lt;P&gt;/*tried this, doesn't change order: proc sort data=test; by descending id; run; */&lt;BR /&gt;proc sgplot data= test; &lt;BR /&gt;scatter y=id x=value ;&lt;BR /&gt;yaxis discreteorder=data;&lt;BR /&gt;run;&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2019 01:58:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-order-yaxis/m-p/552662#M18019</guid>
      <dc:creator>Dave25</dc:creator>
      <dc:date>2019-04-21T01:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot - order yaxis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-order-yaxis/m-p/552663#M18020</link>
      <description>&lt;P&gt;mis-copied my data (shouldn't have included "&lt;SPAN&gt;id value" after the cards statement)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test;&lt;/P&gt;
&lt;P&gt;input id value;&lt;BR /&gt;cards;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1 8.8&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2 24&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3 15&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4 7.0&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5 15.7&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;proc sgplot data= test; &lt;BR /&gt;scatter y=id x=value ;&lt;BR /&gt;yaxis discreteorder=data integer;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2019 02:10:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-order-yaxis/m-p/552663#M18020</guid>
      <dc:creator>Dave25</dc:creator>
      <dc:date>2019-04-21T02:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot - order yaxis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-order-yaxis/m-p/552664#M18021</link>
      <description>Are both variables numeric? It probably has a linear y axis so the discrete order option would do nothing. Try adding type=discrete to the yaxis statement.</description>
      <pubDate>Sun, 21 Apr 2019 02:14:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-order-yaxis/m-p/552664#M18021</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2019-04-21T02:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot - order yaxis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-order-yaxis/m-p/552665#M18022</link>
      <description>yep, forgot about type=discrete - thanks!</description>
      <pubDate>Sun, 21 Apr 2019 02:19:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-order-yaxis/m-p/552665#M18022</guid>
      <dc:creator>Dave25</dc:creator>
      <dc:date>2019-04-21T02:19:43Z</dc:date>
    </item>
  </channel>
</rss>

