<?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: grouped box plot over time using sgpanel in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/grouped-box-plot-over-time-using-sgpanel/m-p/524359#M17606</link>
    <description>&lt;P&gt;adding time to panelby would just generate a whole bunch more panels, one for each timepoint. Imagine a single figure within a single panel. In that figure i want timepoint on the x axis. There is no vbox in my code because it wouldn't produce what i need, that's the problem. My suspicion is that i need to use sgplot and greplay, but i hope not because that would be a hassle. I appreciate that's it's maybe not easy to visualise, i'd provide an example of what i need but nothing appears in a google search, that's why im asking here....&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jan 2019 19:11:34 GMT</pubDate>
    <dc:creator>pau13rown</dc:creator>
    <dc:date>2019-01-03T19:11:34Z</dc:date>
    <item>
      <title>grouped box plot over time using sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/grouped-box-plot-over-time-using-sgpanel/m-p/524325#M17604</link>
      <description>&lt;P&gt;i am using the following code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgpanel data=dataset noautolegend;&lt;BR /&gt;&amp;nbsp; format ....;&lt;BR /&gt;&amp;nbsp; panelby cohort / onepanel spacing=2 headerattrs=(size=14) novarname;&lt;BR /&gt;&amp;nbsp; vline timevar / response=var stat=mean limits=both markers group=grps;&lt;BR /&gt;&amp;nbsp; rowaxis label="my variable" labelattrs=(size=16) valueattrs=(size=14) ;&lt;BR /&gt;&amp;nbsp; colaxis label="time" labelattrs=(size=16) valueattrs=(size=14) ;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but i want to plot box plots over time, not the mean and CI which this is producing. I can't see any way to do this using sgpanel. I could do something like "vbox var / category=timevar" but then i lose grps (each panel should have 2 series of box plots over time, one for each group, and time is discrete/categorical)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 17:24:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/grouped-box-plot-over-time-using-sgpanel/m-p/524325#M17604</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2019-01-03T17:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: grouped box plot over time using sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/grouped-box-plot-over-time-using-sgpanel/m-p/524335#M17605</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183379"&gt;@pau13rown&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;i am using the following code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgpanel data=dataset noautolegend;&lt;BR /&gt;&amp;nbsp; format ....;&lt;BR /&gt;&amp;nbsp; panelby cohort / onepanel spacing=2 headerattrs=(size=14) novarname;&lt;BR /&gt;&amp;nbsp; vline timevar / response=var stat=mean limits=both markers group=grps;&lt;BR /&gt;&amp;nbsp; rowaxis label="my variable" labelattrs=(size=16) valueattrs=(size=14) ;&lt;BR /&gt;&amp;nbsp; colaxis label="time" labelattrs=(size=16) valueattrs=(size=14) ;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but i want to plot box plots over time, not the mean and CI which this is producing. I can't see any way to do this using sgpanel. I could do something like "vbox var / category=timevar" but then i lose grps (each panel should have 2 series of box plots over time, one for each group, and time is discrete/categorical)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cheers!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Why is there no VBOX or HBOX if you want box plots? If you want separate box plots at each "time" then add that variable to your panelby statement though sometimes getting the row and column settings to match what you intend is tricky.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are attempting to combine a Vline and a box then you will need to move over to Graphics Template language as HBOX and VBOX cannot be combined with other plot statements in SGPanel (at least not in my SAS 9.4 according to the documentation)&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;The VBOX statement cannot be used together with other plot statements in the SGPANEL procedure. Box plots can be overlaid with other box plots. However, overlaid box plots must have the same category variables.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;A minimal example data set with (dummy values for your variables if sensitive) to create a few cohort/time combinations would help provide a more complete example.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 18:04:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/grouped-box-plot-over-time-using-sgpanel/m-p/524335#M17605</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-03T18:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: grouped box plot over time using sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/grouped-box-plot-over-time-using-sgpanel/m-p/524359#M17606</link>
      <description>&lt;P&gt;adding time to panelby would just generate a whole bunch more panels, one for each timepoint. Imagine a single figure within a single panel. In that figure i want timepoint on the x axis. There is no vbox in my code because it wouldn't produce what i need, that's the problem. My suspicion is that i need to use sgplot and greplay, but i hope not because that would be a hassle. I appreciate that's it's maybe not easy to visualise, i'd provide an example of what i need but nothing appears in a google search, that's why im asking here....&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 19:11:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/grouped-box-plot-over-time-using-sgpanel/m-p/524359#M17606</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2019-01-03T19:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: grouped box plot over time using sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/grouped-box-plot-over-time-using-sgpanel/m-p/524366#M17607</link>
      <description>&lt;P&gt;The vbox statement in sgpanel does support the group= option, at least in version 9.4M5&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 19:34:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/grouped-box-plot-over-time-using-sgpanel/m-p/524366#M17607</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-01-03T19:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: grouped box plot over time using sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/grouped-box-plot-over-time-using-sgpanel/m-p/524370#M17608</link>
      <description>&lt;P&gt;excellent, youre right, it worked! it doesn't appear in the help page so i thought it wasnt an option: &lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/62603/HTML/default/viewer.htm#panelvbox-stmt.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatproc/62603/HTML/default/viewer.htm#panelvbox-stmt.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 19:48:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/grouped-box-plot-over-time-using-sgpanel/m-p/524370#M17608</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2019-01-03T19:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: grouped box plot over time using sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/grouped-box-plot-over-time-using-sgpanel/m-p/524376#M17609</link>
      <description>&lt;P&gt;Check out the version number. That's the help page for version 9.2, it's 10 years old! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 20:37:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/grouped-box-plot-over-time-using-sgpanel/m-p/524376#M17609</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-01-03T20:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: grouped box plot over time using sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/grouped-box-plot-over-time-using-sgpanel/m-p/524380#M17610</link>
      <description>&lt;P&gt;i need to bookmark the current sas help weblink &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 20:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/grouped-box-plot-over-time-using-sgpanel/m-p/524380#M17610</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2019-01-03T20:54:42Z</dc:date>
    </item>
  </channel>
</rss>

