<?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: Sort is not being displayed when running PROC GPLOT statement in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Sort-is-not-being-displayed-when-running-PROC-GPLOT-statement/m-p/444797#M15296</link>
    <description>&lt;P&gt;PROC GPLOT does not support data order, unless you use one of the "client" devices (actximg, activex, javaimg, java). If you want to try that approach, you will also need to use the DATAORDER option on the PLOT statment. However, I would recommend that you use SGPLOT instead to create this plot:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=SORT_MARKT;
   xaxis type=discrete discreteorder=data;
   yaxis values=(10000 to 23000 by 1000);
   series x=sales y=case_number / markers smoothconnect
             markerattrs=(symbol=circlefilled) lineattrs=(thickness=2);
   refline 13000 17000 20000 / axis=x;
run;
            &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
    <pubDate>Mon, 12 Mar 2018 15:26:38 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2018-03-12T15:26:38Z</dc:date>
    <item>
      <title>Sort is not being displayed when running PROC GPLOT statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Sort-is-not-being-displayed-when-running-PROC-GPLOT-statement/m-p/444788#M15295</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I've sorted my data and created a sorted output data set ("SORT_MARKT"). I'm attempting to use that sorted data set to plot my data and show an ascending trend line, but once the data is plotted, it's displayed as if no sort was ever applied. I'm not sure what exactly is causing this to display this way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SORT DATA = MARKETING OUT=SORT_MARKT ;&lt;BR /&gt;BY sales&amp;nbsp; ;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;goptions reset=all border;&lt;BR /&gt;symbol value=dot interpol=sms line=1 width=2 ;&lt;BR /&gt;proc gplot data=SORT_MARKT ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;plot sales*case_number /&amp;nbsp; haxis = 1 to 21 by 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vaxis = 10000 to 23000 by 1000&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vref = 13000 17000 20000&amp;nbsp;&amp;nbsp; &amp;nbsp;;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attached picture shows the sorted data set and the proc gplot output. What am I missing?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sort.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19136i90ACDFFCF228A8B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="sort.JPG" alt="sort.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 15:04:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Sort-is-not-being-displayed-when-running-PROC-GPLOT-statement/m-p/444788#M15295</guid>
      <dc:creator>deltron</dc:creator>
      <dc:date>2018-03-12T15:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sort is not being displayed when running PROC GPLOT statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Sort-is-not-being-displayed-when-running-PROC-GPLOT-statement/m-p/444797#M15296</link>
      <description>&lt;P&gt;PROC GPLOT does not support data order, unless you use one of the "client" devices (actximg, activex, javaimg, java). If you want to try that approach, you will also need to use the DATAORDER option on the PLOT statment. However, I would recommend that you use SGPLOT instead to create this plot:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=SORT_MARKT;
   xaxis type=discrete discreteorder=data;
   yaxis values=(10000 to 23000 by 1000);
   series x=sales y=case_number / markers smoothconnect
             markerattrs=(symbol=circlefilled) lineattrs=(thickness=2);
   refline 13000 17000 20000 / axis=x;
run;
            &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 15:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Sort-is-not-being-displayed-when-running-PROC-GPLOT-statement/m-p/444797#M15296</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-03-12T15:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sort is not being displayed when running PROC GPLOT statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Sort-is-not-being-displayed-when-running-PROC-GPLOT-statement/m-p/444920#M15305</link>
      <description>&lt;P&gt;Thanks, Dan. I finally saw what you meant about the PROC GPLOT route and opted to go with SGPLOT. Made one minor tweak to the Series statement.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sort2.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19159i8FF9506B198668A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="sort2.JPG" alt="sort2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time,&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 20:00:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Sort-is-not-being-displayed-when-running-PROC-GPLOT-statement/m-p/444920#M15305</guid>
      <dc:creator>deltron</dc:creator>
      <dc:date>2018-03-12T20:00:02Z</dc:date>
    </item>
  </channel>
</rss>

