<?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 how to panel multiple plots created using proc sgplot? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/how-to-panel-multiple-plots-created-using-proc-sgplot/m-p/783505#M22367</link>
    <description>&lt;P&gt;Here is the basic code:&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=df;&lt;BR /&gt;vline G / response=fits stat=mean;&lt;BR /&gt;run; &lt;/PRE&gt;
&lt;P&gt;I am doing the same thing for variables A-F. I want to panel them making a main effects mean plot for the response.&lt;/P&gt;
&lt;P&gt;Can you help with the syntax? My problem with this is that the variables A-G are continuouos covariates and not levels of a factor.&lt;/P&gt;
&lt;P&gt;I think it may be appropriate to use proc sgpanel. Right now I am doing these one at a time using sgplot code.&lt;/P&gt;
&lt;P&gt;Formerly, proc gplot was used with proc greplay but I am assuming SAS has upgraded this approach. I am trying to keep this simple.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Dec 2021 01:36:02 GMT</pubDate>
    <dc:creator>MaryA_Marion</dc:creator>
    <dc:date>2021-12-02T01:36:02Z</dc:date>
    <item>
      <title>how to panel multiple plots created using proc sgplot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-panel-multiple-plots-created-using-proc-sgplot/m-p/783505#M22367</link>
      <description>&lt;P&gt;Here is the basic code:&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=df;&lt;BR /&gt;vline G / response=fits stat=mean;&lt;BR /&gt;run; &lt;/PRE&gt;
&lt;P&gt;I am doing the same thing for variables A-F. I want to panel them making a main effects mean plot for the response.&lt;/P&gt;
&lt;P&gt;Can you help with the syntax? My problem with this is that the variables A-G are continuouos covariates and not levels of a factor.&lt;/P&gt;
&lt;P&gt;I think it may be appropriate to use proc sgpanel. Right now I am doing these one at a time using sgplot code.&lt;/P&gt;
&lt;P&gt;Formerly, proc gplot was used with proc greplay but I am assuming SAS has upgraded this approach. I am trying to keep this simple.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 01:36:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-panel-multiple-plots-created-using-proc-sgplot/m-p/783505#M22367</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2021-12-02T01:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to panel multiple plots created using proc sgplot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-panel-multiple-plots-created-using-proc-sgplot/m-p/783522#M22370</link>
      <description>&lt;P&gt;Data example?&lt;/P&gt;
&lt;P&gt;You likely want to add a variable to indicate which "panel" a specific graph belongs in. This might mean restructuring the data, possibly with Proc Transpose so that you have a variable indicating the original variable name. Then use Panelby statement with that new variable.&lt;/P&gt;
&lt;P&gt;Likely there is more work involved in reshaping the data then the Sgpanel code.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 03:13:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-panel-multiple-plots-created-using-proc-sgplot/m-p/783522#M22370</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-12-02T03:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to panel multiple plots created using proc sgplot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-panel-multiple-plots-created-using-proc-sgplot/m-p/783740#M22373</link>
      <description>&lt;P&gt;Thank you for the reply. I wanted a verbal response at first. I am having difficulties making a flow diagram of how to prepare the panel plot. I am enclosing a sample data set this time ( modified&amp;nbsp; on 12-03 9:05am).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 14:06:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-panel-multiple-plots-created-using-proc-sgplot/m-p/783740#M22373</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2021-12-03T14:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to panel multiple plots created using proc sgplot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-panel-multiple-plots-created-using-proc-sgplot/m-p/783760#M22374</link>
      <description>&lt;P&gt;Can you say more about what you are trying to accomplish?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your program, you use PROC GENMOD to fit a regression surface that models the response Y as a linear function of the continuous covariates A, B, and C.&amp;nbsp; Do you want to visualize slices through that surface as a function of each covariate while holding the other covariates fixed at their mean values? If so, &lt;A href="https://blogs.sas.com/content/iml/2016/06/22/sas-effectplot-statement.html" target="_self"&gt;use the EFFECTPLOT statement.&lt;/A&gt;&amp;nbsp;One choice is as follows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data=so;
model y = a b c / dist = normal link=identity lrci obstats;
output out=sonorm pred=fits STDRESDEV=Z;

effectplot fit (x=a);
effectplot fit (x=b);
effectplot fit (x=c);
run; quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 19:56:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-panel-multiple-plots-created-using-proc-sgplot/m-p/783760#M22374</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-12-02T19:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to panel multiple plots created using proc sgplot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-panel-multiple-plots-created-using-proc-sgplot/m-p/783794#M22381</link>
      <description>&lt;P&gt;In my effort to understand verbal instructions I missed the obvious. Here is a similar graph to what I am doing. Just reduce # of variables down to A B C.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MaryA_Marion_0-1638482391093.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66360i5643258DC2B613CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MaryA_Marion_0-1638482391093.png" alt="MaryA_Marion_0-1638482391093.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 22:01:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-panel-multiple-plots-created-using-proc-sgplot/m-p/783794#M22381</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2021-12-02T22:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to panel multiple plots created using proc sgplot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-panel-multiple-plots-created-using-proc-sgplot/m-p/783815#M22383</link>
      <description>&lt;P&gt;I need simple means plots that are panelled. Do I want to use sgplot or sgpanel to do it? I was hoping to modify my sgplot code to output a panel. I can transpose like was mentioned. Then A B C become like subjects (rows in dataset)?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 02:11:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-panel-multiple-plots-created-using-proc-sgplot/m-p/783815#M22383</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2021-12-03T02:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to panel multiple plots created using proc sgplot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-panel-multiple-plots-created-using-proc-sgplot/m-p/783928#M22388</link>
      <description>&lt;P&gt;Here is an updated sas file.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 14:06:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-panel-multiple-plots-created-using-proc-sgplot/m-p/783928#M22388</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2021-12-03T14:06:00Z</dc:date>
    </item>
  </channel>
</rss>

