<?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 Panel plot / align categorical groups column wise in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Panel-plot-align-categorical-groups-column-wise/m-p/566686#M18314</link>
    <description>&lt;P&gt;Hi Folks:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to re-organize the plot shown below to align same age groups across the columns? I'd like to have Distant.. among 0-44yr, Localized.. among 0-44yr, and Regional... 0-44yr under the first column and the same for the rest of the 3 columns. Right now, different age groups are lined up. For example:&amp;nbsp; you'll find 0-44yr, 60-75yr and 45-59yr age groups under the first column. Data used for this plot is attached to the post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="plot unaligned.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30335iED01290AE05BE828/image-size/large?v=v2&amp;amp;px=999" role="button" title="plot unaligned.png" alt="plot unaligned.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data=MERGED_HAZARD2 noautolegend;
label PCT_MISS100='Percent of Incomplete Data' RSD='RELATIVE SURVIVAL DIFFERENCE' ASD='ABS SURIVAL DIFFERENCE';
panelby group/ novarname columns=4 rows=3;
styleattrs DATACONTRASTCOLORS=(black red);
series  x=PCT_MISS100 y=RSD /lineattrs=(pattern=solid);
series  x=PCT_MISS100 y=ASD /lineattrs=(pattern=solid);
keylegend/  title="Date Type" position=bottom;
colaxis label='percent of missing in data' grid;
rowaxis label='RELATIVE AND ABSOLUTE SURVIVAL DIFFERENCE' grid;
title "Effect of missing in X on the estimates of Y model"; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks for your time and halp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2019 19:02:00 GMT</pubDate>
    <dc:creator>Cruise</dc:creator>
    <dc:date>2019-06-17T19:02:00Z</dc:date>
    <item>
      <title>Panel plot / align categorical groups column wise</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Panel-plot-align-categorical-groups-column-wise/m-p/566686#M18314</link>
      <description>&lt;P&gt;Hi Folks:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to re-organize the plot shown below to align same age groups across the columns? I'd like to have Distant.. among 0-44yr, Localized.. among 0-44yr, and Regional... 0-44yr under the first column and the same for the rest of the 3 columns. Right now, different age groups are lined up. For example:&amp;nbsp; you'll find 0-44yr, 60-75yr and 45-59yr age groups under the first column. Data used for this plot is attached to the post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="plot unaligned.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30335iED01290AE05BE828/image-size/large?v=v2&amp;amp;px=999" role="button" title="plot unaligned.png" alt="plot unaligned.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data=MERGED_HAZARD2 noautolegend;
label PCT_MISS100='Percent of Incomplete Data' RSD='RELATIVE SURVIVAL DIFFERENCE' ASD='ABS SURIVAL DIFFERENCE';
panelby group/ novarname columns=4 rows=3;
styleattrs DATACONTRASTCOLORS=(black red);
series  x=PCT_MISS100 y=RSD /lineattrs=(pattern=solid);
series  x=PCT_MISS100 y=ASD /lineattrs=(pattern=solid);
keylegend/  title="Date Type" position=bottom;
colaxis label='percent of missing in data' grid;
rowaxis label='RELATIVE AND ABSOLUTE SURVIVAL DIFFERENCE' grid;
title "Effect of missing in X on the estimates of Y model"; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks for your time and halp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 19:02:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Panel-plot-align-categorical-groups-column-wise/m-p/566686#M18314</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2019-06-17T19:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Panel plot / align categorical groups column wise</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Panel-plot-align-categorical-groups-column-wise/m-p/566715#M18316</link>
      <description>&lt;P&gt;To do a custom sort order like this in SGPANEL, create an additional "sort" column, where you assign the numbers 1-N to your unique "group" column values, Make sure the 1, 5, and 9 are associated to your "0-44yr" values, 2, 6, and 10 to your "45-59yr" values, and so on. Then, PROC SORT the data on the "sort" column. In your SGPANEL PANELBY statement, set SORTORDER=DATA. That way, the current ordering of your "group" column should remain intact.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 20:13:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Panel-plot-align-categorical-groups-column-wise/m-p/566715#M18316</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-06-17T20:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Panel plot / align categorical groups column wise</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Panel-plot-align-categorical-groups-column-wise/m-p/566716#M18317</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks Dan. I'll report the modified the plot back in here.Do you see other red flags in my approach?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 00:39:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Panel-plot-align-categorical-groups-column-wise/m-p/566716#M18317</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2019-06-18T00:39:46Z</dc:date>
    </item>
  </channel>
</rss>

