<?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: Ordering appearance of grouped scatter data on SGPLOT in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Ordering-appearance-of-grouped-scatter-data-on-SGPLOT/m-p/880831#M39082</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;scatter x=weight y=age / group=animal markerattrs=(size=3pt) grouporder=descending;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also add a &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/grstatproc/p1lcbd3lhs3t3bn1jk6d8sjt2yqx.htm#n0hjrs3w86z8ean1npu022im7j2ss" target="_self"&gt;transparency option&lt;/A&gt; so that the markers on top don't completely hide the markers underneath. You might also want to make the markers smaller.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jun 2023 21:52:25 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-06-14T21:52:25Z</dc:date>
    <item>
      <title>Ordering appearance of grouped scatter data on SGPLOT</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Ordering-appearance-of-grouped-scatter-data-on-SGPLOT/m-p/880795#M39081</link>
      <description>&lt;P&gt;Hi SAS Comm,&lt;BR /&gt;&lt;BR /&gt;I have scatter plot in SGPLOT very simple. It has group statement (animal). This take two value: "hamster" and "gerbil". However when I plot the group=Gerbil data is plotted underneath the group=Hamster data, so I can't see it (the Hamster data is more dense, so all gerbil data underneath). How do I change the ordering, to bring the gerbil data to the front. I do not want to change it to "01: Hamster" and "02: Gerbil". I have tried sorting descending, it no working.&lt;BR /&gt;&lt;BR /&gt;Help would be appreciate!&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods graphics / width=4.5in height=4.5in noborder attrpriority=none;
proc sgplot data=table2 ;styleattrs datacontrastcolors=(blue red)
datasymbols=(squarefilled circlefilled);
scatter x=weight y=age / group=animal markerattrs=(size=3pt);
xaxis grid max=0 min=50 label="Weight in grams";
yaxis grid max=0 min=20 label="Age in weeks";
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Jun 2023 20:06:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Ordering-appearance-of-grouped-scatter-data-on-SGPLOT/m-p/880795#M39081</guid>
      <dc:creator>linlin87</dc:creator>
      <dc:date>2023-06-14T20:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Ordering appearance of grouped scatter data on SGPLOT</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Ordering-appearance-of-grouped-scatter-data-on-SGPLOT/m-p/880831#M39082</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;scatter x=weight y=age / group=animal markerattrs=(size=3pt) grouporder=descending;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also add a &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/grstatproc/p1lcbd3lhs3t3bn1jk6d8sjt2yqx.htm#n0hjrs3w86z8ean1npu022im7j2ss" target="_self"&gt;transparency option&lt;/A&gt; so that the markers on top don't completely hide the markers underneath. You might also want to make the markers smaller.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 21:52:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Ordering-appearance-of-grouped-scatter-data-on-SGPLOT/m-p/880831#M39082</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-06-14T21:52:25Z</dc:date>
    </item>
  </channel>
</rss>

