<?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 VBOX - Category Order in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SGPLOT-VBOX-Category-Order/m-p/309788#M66752</link>
    <description>&lt;P&gt;Or use Proc Sort to sort the data with the SORTSEQ option Linguistic with Numeric_Collation=On&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2016 17:53:21 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-11-07T17:53:21Z</dc:date>
    <item>
      <title>SGPLOT VBOX - Category Order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SGPLOT-VBOX-Category-Order/m-p/309613#M66679</link>
      <description>&lt;P&gt;Hi, I'm trying to to a VBOX PLOT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a data set like: I have 24 intervals, I1-I24&lt;/P&gt;
&lt;P&gt;_LABEL_ &amp;nbsp;COL1&lt;/P&gt;
&lt;P&gt;I1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;
&lt;P&gt;I1&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&lt;/P&gt;
&lt;P&gt;I10 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7&lt;/P&gt;
&lt;P&gt;I10 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7&lt;/P&gt;
&lt;P&gt;I11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6&lt;/P&gt;
&lt;P&gt;I11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;I8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/P&gt;
&lt;P&gt;I8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6&lt;/P&gt;
&lt;P&gt;I9 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/P&gt;
&lt;P&gt;I9 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&lt;/P&gt;
&lt;P&gt;I has to sort it to transpose my data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="xis-codeFragment"&gt; proc sgplot data=mergedt;&lt;BR /&gt; vbox COL1/ category=_LABEL_;&lt;BR /&gt; xaxis grid label="Interval" discreteorder=data;&lt;BR /&gt; yaxis grid label="XX";&lt;BR /&gt; run;&lt;/PRE&gt;
&lt;P&gt;My plot in xaxis is I1 I10 I11 I12 .. I19 I2 20 I21 .. I24 I3 I4 ..I9&lt;/P&gt;
&lt;P&gt;I need my xaxis like&amp;nbsp;I1 I2 I3 I4 ..... I23 I24&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have try with&amp;nbsp;discreteorder=format or unformart and it is the same result. Any idea to "unsort it" or have the xaxis in numeric order?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2016 20:19:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SGPLOT-VBOX-Category-Order/m-p/309613#M66679</guid>
      <dc:creator>mariange8282</dc:creator>
      <dc:date>2016-11-06T20:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT VBOX - Category Order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SGPLOT-VBOX-Category-Order/m-p/309616#M66681</link>
      <description>&lt;P&gt;The typical solution is a custom format. Map each Label to a numeric variable that sorts correctly and then a format that maps to the variable you want displayed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc format;&lt;/P&gt;
&lt;P&gt;value Icat&lt;/P&gt;
&lt;P&gt;1= 'I1'&lt;/P&gt;
&lt;P&gt;2='I2'&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;24='I24';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc SGPLOT ...;&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;format label icat.;&lt;/P&gt;
&lt;P&gt;run;quit;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2016 20:23:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SGPLOT-VBOX-Category-Order/m-p/309616#M66681</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-06T20:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT VBOX - Category Order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SGPLOT-VBOX-Category-Order/m-p/309788#M66752</link>
      <description>&lt;P&gt;Or use Proc Sort to sort the data with the SORTSEQ option Linguistic with Numeric_Collation=On&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 17:53:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SGPLOT-VBOX-Category-Order/m-p/309788#M66752</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-11-07T17:53:21Z</dc:date>
    </item>
  </channel>
</rss>

