<?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: sgpanel with extra grouping on yaxis? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471442#M16276</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;No success. It appears that my SAS version is not supportive of it. Maybe I should try excel which is lot harder for me.&lt;/P&gt;
&lt;P&gt;Thanks anyway, Dan.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1388  ods graphics / height=700 width=800;
1389  proc sgpanel data=plot(where=(race1 ne 99));
1390  panelby race1/novarname onepanel LAYOUT=panel columns=1 ROWHEADERPOS=right COLHEADERPOS=both
1390!  SKIPEMPTYCELLS;
1391  series y=rate_ob x=year/ group=age  lineattrs=(thickness=2)
1392                           GROUPLP=standard grouplc=age="age";
                               -------                     -
                               1                           22
                                                           76
WARNING 1-322: Assuming the symbol GROUP was misspelled as GROUPLP.

ERROR 22-322: Syntax error, expecting one of the following: CURVELABEL, LEGENDLABEL, NAME,
              SPLITCHAR.

ERROR 76-322: Syntax error, statement will be ignored.

1392!                          GROUPLP=standard grouplc=age="age";
                                                -------
                                                1
1393  keylegend "age" / type=linecolor title="AGE" position=top;
                        ----
                        22
                        76
1394  keylegend "age" / type=linepattern title="Standard" position=bottom;
                        ----
                        22
                        76
WARNING 1-322: Assuming the symbol GROUP was misspelled as grouplc.
ERROR 22-322: Syntax error, expecting one of the following: ;, ACROSS, AUTOITEMSIZE, BORDER,
              DOWN, NOBORDER, POSITION, TITLE, TITLEATTRS, VALUEATTRS.
ERROR 76-322: Syntax error, statement will be ignored.
1395  colaxis label='YEARS' fitpolicy=thin valuesformat=best4.0 values=(2002 to 2016 by 1);
1396  rowaxis label='Overweight RATE (%)' grid;
1397  title "Trends in Overweight Prevalence, 2002-2016";
1398  run;

NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SGPANEL used (Total process time):
      real time           0.04 seconds
      cpu time            0.01 seconds
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 19 Jun 2018 16:50:42 GMT</pubDate>
    <dc:creator>Cruise</dc:creator>
    <dc:date>2018-06-19T16:50:42Z</dc:date>
    <item>
      <title>sgpanel with extra grouping on yaxis?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471402#M16264</link>
      <description>&lt;P&gt;I'd&amp;nbsp;like to&amp;nbsp;modify&amp;nbsp;"Current Cluttered One" shown in the image to a&amp;nbsp;Desirable Layout on the left where lines are paired by extra grouping variable Yes vs No using dashed line and colors combined.&amp;nbsp;Yes vs No grouping in my&amp;nbsp;data is Standard 1 vs&amp;nbsp;2.&amp;nbsp;Snapshot of my&amp;nbsp;data structure is shown right below. Could you please help modify the code below for me? The code is not&amp;nbsp;accounting for Standard grouping variable yet.&amp;nbsp;Excel data attached, if time to look at it.&lt;/P&gt;
&lt;TABLE width="464"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="65"&gt;age&lt;/TD&gt;
&lt;TD width="65"&gt;race1&lt;/TD&gt;
&lt;TD width="65"&gt;year&lt;/TD&gt;
&lt;TD width="70"&gt;rate_ow&lt;/TD&gt;
&lt;TD width="70"&gt;rate_ob&lt;/TD&gt;
&lt;TD width="70"&gt;rate_obex&lt;/TD&gt;
&lt;TD width="59"&gt;standard&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;2002&lt;/TD&gt;
&lt;TD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;1&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;2004&lt;/TD&gt;
&lt;TD&gt;14.5&lt;/TD&gt;
&lt;TD&gt;10.5&lt;/TD&gt;
&lt;TD&gt;3.5&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics / height=700 width=800;
proc sgpanel data=plot(where=(race1 ne 99));
panelby race1/novarname onepanel LAYOUT=panel columns=1 ROWHEADERPOS=right COLHEADERPOS=both SKIPEMPTYCELLS;
series y=rate_ob x=year/ group=age_6mo lineattrs=(pattern=solid) lineattrs=(thickness=2);
keylegend/title="AGE" position=top;
format age age. race1 racerace.;
colaxis label='YEARS' fitpolicy=thin valuesformat=best4.0 values=(2002 to 2016 by 1);
rowaxis label='Overweight RATE (%)' grid;
title "Trends in Overweight Prevalence, 2002-2016";
run;&lt;/CODE&gt;&lt;/PRE&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="OBESITY PLOTS.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21268iC317EA788E240DD3/image-size/large?v=v2&amp;amp;px=999" role="button" title="OBESITY PLOTS.png" alt="OBESITY PLOTS.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 17:11:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471402#M16264</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-06-19T17:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel with extra grouping on yaxis?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471404#M16265</link>
      <description>&lt;P&gt;On the SERIES plot, set GROUPLP=Standard, and see if you get what you want.&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>Tue, 19 Jun 2018 15:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471404#M16265</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-06-19T15:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel with extra grouping on yaxis?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471407#M16266</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1322  ods graphics / height=700 width=800;
1323  proc sgpanel data=temp.aplot(where=(race1 ne 99));
1324  panelby age/novarname onepanel LAYOUT=panel columns=1 ROWHEADERPOS=right COLHEADERPOS=both
1324! SKIPEMPTYCELLS;
1325  series y=rate_ob x=year/
1326  group=race1 GROUPLP=Standard lineattrs=(pattern=solid) lineattrs=(thickness=2);
                  -------
                  1
WARNING 1-322: Assuming the symbol GROUP was misspelled as GROUPLP.
1327  keylegend/title="AGE" position=top;
1328  format age age. race1 racerace.;
1329  colaxis label='YEARS' fitpolicy=thin valuesformat=best4.0 values=(2002 to 2016 by 1);
1330  rowaxis label='Overweight RATE (%)' grid;
1331  title "Trends in Overweight Prevalence, 2002-2016";
1332  run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt;, above is the error message I get.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 15:20:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471407#M16266</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-06-19T15:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel with extra grouping on yaxis?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471408#M16267</link>
      <description>&lt;P&gt;What version of SAS are you running?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 15:21:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471408#M16267</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-06-19T15:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel with extra grouping on yaxis?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471409#M16268</link>
      <description>9.4</description>
      <pubDate>Tue, 19 Jun 2018 15:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471409#M16268</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-06-19T15:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel with extra grouping on yaxis?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471413#M16269</link>
      <description>&lt;P&gt;The secondary grouping options for SERIES plots was introduced in 9.4, maintenance 2. If you must have either 9.4 or 9,4m1.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 15:26:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471413#M16269</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-06-19T15:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel with extra grouping on yaxis?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471416#M16270</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Supposed to have that option with this version, huh?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas version.png" style="width: 575px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21269iCBFDE5170C635FF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas version.png" alt="sas version.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 15:29:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471416#M16270</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-06-19T15:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel with extra grouping on yaxis?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471421#M16271</link>
      <description>&lt;P&gt;Yes, is that version where you see the error?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 15:35:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471421#M16271</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-06-19T15:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel with extra grouping on yaxis?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471422#M16272</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt;, yes, the error&amp;nbsp;was from&amp;nbsp;this version&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 15:37:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471422#M16272</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-06-19T15:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel with extra grouping on yaxis?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471427#M16273</link>
      <description>&lt;P&gt;I just took your code (minus the formats) and the data, and ran it using the GROUPLP option on a Windows machine using 9.4m3, and it worked for me. I'm not sure why you're getting the syntax error.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 15:54:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471427#M16273</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-06-19T15:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel with extra grouping on yaxis?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471432#M16274</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt;, Do you mind to post your code just used&amp;nbsp;with me without formats?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 16:16:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471432#M16274</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-06-19T16:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel with extra grouping on yaxis?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471439#M16275</link>
      <description>&lt;P&gt;Here you go:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics / height=700 width=800;
proc sgpanel data=plot(where=(race1 ne 99));
panelby race1/novarname onepanel LAYOUT=panel columns=1 ROWHEADERPOS=right COLHEADERPOS=both SKIPEMPTYCELLS;
series y=rate_ob x=year/ group=age_6mo  lineattrs=(thickness=2) 
                         GROUPLP=standard grouplc=age_6mo name="age";
keylegend "age" / type=linecolor title="AGE" position=top;
keylegend "age" / type=linepattern title="Standard" position=bottom;
colaxis label='YEARS' fitpolicy=thin valuesformat=best4.0 values=(2002 to 2016 by 1);
rowaxis label='Overweight RATE (%)' grid;
title "Trends in Overweight Prevalence, 2002-2016";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Jun 2018 16:42:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471439#M16275</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-06-19T16:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel with extra grouping on yaxis?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471442#M16276</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;No success. It appears that my SAS version is not supportive of it. Maybe I should try excel which is lot harder for me.&lt;/P&gt;
&lt;P&gt;Thanks anyway, Dan.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1388  ods graphics / height=700 width=800;
1389  proc sgpanel data=plot(where=(race1 ne 99));
1390  panelby race1/novarname onepanel LAYOUT=panel columns=1 ROWHEADERPOS=right COLHEADERPOS=both
1390!  SKIPEMPTYCELLS;
1391  series y=rate_ob x=year/ group=age  lineattrs=(thickness=2)
1392                           GROUPLP=standard grouplc=age="age";
                               -------                     -
                               1                           22
                                                           76
WARNING 1-322: Assuming the symbol GROUP was misspelled as GROUPLP.

ERROR 22-322: Syntax error, expecting one of the following: CURVELABEL, LEGENDLABEL, NAME,
              SPLITCHAR.

ERROR 76-322: Syntax error, statement will be ignored.

1392!                          GROUPLP=standard grouplc=age="age";
                                                -------
                                                1
1393  keylegend "age" / type=linecolor title="AGE" position=top;
                        ----
                        22
                        76
1394  keylegend "age" / type=linepattern title="Standard" position=bottom;
                        ----
                        22
                        76
WARNING 1-322: Assuming the symbol GROUP was misspelled as grouplc.
ERROR 22-322: Syntax error, expecting one of the following: ;, ACROSS, AUTOITEMSIZE, BORDER,
              DOWN, NOBORDER, POSITION, TITLE, TITLEATTRS, VALUEATTRS.
ERROR 76-322: Syntax error, statement will be ignored.
1395  colaxis label='YEARS' fitpolicy=thin valuesformat=best4.0 values=(2002 to 2016 by 1);
1396  rowaxis label='Overweight RATE (%)' grid;
1397  title "Trends in Overweight Prevalence, 2002-2016";
1398  run;

NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SGPANEL used (Total process time):
      real time           0.04 seconds
      cpu time            0.01 seconds
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Jun 2018 16:50:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-with-extra-grouping-on-yaxis/m-p/471442#M16276</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-06-19T16:50:42Z</dc:date>
    </item>
  </channel>
</rss>

