<?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 discreteorder=unformatted scatterplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-discreteorder-unformatted-scatterplot/m-p/121884#M4707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gotcha. Thanks much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Apr 2013 15:54:11 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2013-04-26T15:54:11Z</dc:date>
    <item>
      <title>SGPLOT discreteorder=unformatted scatterplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-discreteorder-unformatted-scatterplot/m-p/121882#M4705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should SGPLOT honor&amp;nbsp; DiscreteOrder= for a scatter plot?&amp;nbsp; I read the docs as saying yes, it should respect discreteorder for any plot that has a discrete axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I seem to get DiscreteOrder=data no matter what, e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;proc sort data=sashelp.class out=class;
&amp;nbsp;&amp;nbsp; by descending name;
 run;
 proc sgplot data=class noautolegend;
&amp;nbsp; scatter x=name y=height / markerattrs=(symbol=diamondfilled) ;
 * vbox height/category=name;
&amp;nbsp; xaxis type=discrete discreteorder=unformatted;
 run;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use vbox, discreteorder is honored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I'm just reading the docs wrong.&amp;nbsp; :&lt;/P&gt;&lt;PRE&gt;DISCRETEORDER= DATA | FORMATTED | UNFORMATTED
specifies the order in which discrete tick values are placed on the axis. Specify one of the following values:
DATA places the values in the order in which they appear in the data. 
FORMATTED sorts the formatted values in ascending character order. 
UNFORMATTED sorts the unformatted values in ascending character order. 
Default:UNFORMATTED 
Restriction:This option affects only box plots, dot plots, bar charts, and line plots, or for any axis where TYPE=DISCRETE. 
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read the restriction as suggesting DISCRETEORDER should be honored for a scatterplot&amp;nbsp; whent TYPE=Discrete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not a big problem, cuz I can just sort the data.&amp;nbsp; But wanted to ask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;--Q.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 14:22:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-discreteorder-unformatted-scatterplot/m-p/121882#M4705</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2013-04-26T14:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT discreteorder=unformatted scatterplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-discreteorder-unformatted-scatterplot/m-p/121883#M4706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The last part of the line is incorrect. The DISCRETEORDER option is honored only for VBOX/HBOX, VBAR/HBAR, VLINE/HLINE, and DOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 15:39:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-discreteorder-unformatted-scatterplot/m-p/121883#M4706</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2013-04-26T15:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT discreteorder=unformatted scatterplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-discreteorder-unformatted-scatterplot/m-p/121884#M4707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gotcha. Thanks much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 15:54:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-discreteorder-unformatted-scatterplot/m-p/121884#M4707</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2013-04-26T15:54:11Z</dc:date>
    </item>
  </channel>
</rss>

