<?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 xaxis NOT sorted for all group values in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-xaxis-NOT-sorted-for-all-group-values/m-p/388725#M13322</link>
    <description>&lt;P&gt;I succeeded to create the format like this&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;proc format ; picture Format_Year_Suite low-high = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'00'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (prefix=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'N + '&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;) ; run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;and then within the proc sgplot I mentionne&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;format Suite_Year_4_Sort &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;Format_Year_Suite.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;the problem is that it works for all numbers except 0 which is not displays.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Aug 2017 09:36:57 GMT</pubDate>
    <dc:creator>Nasser_DRMCP</dc:creator>
    <dc:date>2017-08-17T09:36:57Z</dc:date>
    <item>
      <title>sgplot xaxis NOT sorted for all group values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-xaxis-NOT-sorted-for-all-group-values/m-p/388503#M13311</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I use proc sgplot . the group is the column "Profil"&amp;nbsp;with 4 values NA, P1, P2 and P3.&lt;/P&gt;&lt;P&gt;the&amp;nbsp;values of xaxis are N, N+1, N+2, N+3...(years)&lt;/P&gt;&lt;P&gt;The problem is the following : I would like that xaxis values are sorted like N, N+1, N+2...N+8. but as you can&amp;nbsp;notice in the enclosed picture , they are not sorted because the profiles P1 P2 and P3 have the x values N, N+1, N+2 But the NA profil has x values N+5 to N+8.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="profile.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14518iCC3D32CE364AB0ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="profile.PNG" alt="profile.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 15:42:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-xaxis-NOT-sorted-for-all-group-values/m-p/388503#M13311</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2017-08-16T15:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot xaxis NOT sorted for all group values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-xaxis-NOT-sorted-for-all-group-values/m-p/388505#M13312</link>
      <description>&lt;P&gt;Create another variable that maps N to 0, N+1 to 1, N+2 to 2, etc.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then use that variable as your X axis, but create a format that displays it as N, N+1.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 15:45:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-xaxis-NOT-sorted-for-all-group-values/m-p/388505#M13312</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-16T15:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot xaxis NOT sorted for all group values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-xaxis-NOT-sorted-for-all-group-values/m-p/388507#M13313</link>
      <description>&lt;P&gt;thank you very much Reeza for you quick answer.&lt;/P&gt;&lt;P&gt;I create the new variable but only 0 2 4 6 8 are displayed. 1 3 5 7 are missing on the x axis&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 15:52:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-xaxis-NOT-sorted-for-all-group-values/m-p/388507#M13313</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2017-08-16T15:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot xaxis NOT sorted for all group values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-xaxis-NOT-sorted-for-all-group-values/m-p/388515#M13314</link>
      <description>&lt;P&gt;I succed to get the correct values in x axis by using min max values in variable and then I can do this :&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;xaxis display = (nolabel) discreteorder = FORMATTED values=(&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;v_min_xaxis.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; to &amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;v_max_xaxis.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; by &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) ;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 16:18:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-xaxis-NOT-sorted-for-all-group-values/m-p/388515#M13314</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2017-08-16T16:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot xaxis NOT sorted for all group values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-xaxis-NOT-sorted-for-all-group-values/m-p/388712#M13321</link>
      <description>&lt;P&gt;Hello Reeza&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't succeed to create a format that displays&amp;nbsp;(0,1,2,3...) &amp;nbsp;as N, N+1, N+2...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance for your help&lt;/P&gt;&lt;P&gt;Nasser&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 08:05:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-xaxis-NOT-sorted-for-all-group-values/m-p/388712#M13321</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2017-08-17T08:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot xaxis NOT sorted for all group values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-xaxis-NOT-sorted-for-all-group-values/m-p/388725#M13322</link>
      <description>&lt;P&gt;I succeeded to create the format like this&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;proc format ; picture Format_Year_Suite low-high = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'00'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (prefix=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'N + '&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;) ; run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;and then within the proc sgplot I mentionne&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;format Suite_Year_4_Sort &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;Format_Year_Suite.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;the problem is that it works for all numbers except 0 which is not displays.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 09:36:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-xaxis-NOT-sorted-for-all-group-values/m-p/388725#M13322</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2017-08-17T09:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot xaxis NOT sorted for all group values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-xaxis-NOT-sorted-for-all-group-values/m-p/388888#M13326</link>
      <description>&lt;P&gt;Perhaps something like:&lt;/P&gt;
&lt;PRE&gt;proc format library=work; 
picture Format_Year_Suite 
0      = 'N' (noedit)
0&amp;lt;-high = '09' (prefix='N + ') ; 
run;

data _null_;
do x= 0 to 10;
put x= best5. +1 x= format_year_suite.;
end;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Aug 2017 17:11:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-xaxis-NOT-sorted-for-all-group-values/m-p/388888#M13326</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-17T17:11:17Z</dc:date>
    </item>
  </channel>
</rss>

