<?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 Scatterplot Help: Graphing A Response Variable From Multiple Groups Over Time SAS University Edition in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Scatterplot-Help-Graphing-A-Response-Variable-From-Multiple/m-p/320564#M11223</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a bit of help creating a graph in SAS University Edition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am trying to do is create a scatterplot where x=response variable, y=time with 4 levels of a grouping variable. Each level of the grouping variable contains 10-12 observations at each time point. I am trying to display all observations across time, but with the observations from each group seperated in space on the chart. (I apologize if this description is lacking).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I have so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=plin2bodycomp_organized;
      scatter x=time y=weight / jitter group=Treatment_Group;
run;

/*** weight= Response Variable, Treatment_Group= Group Variable **/


/* Note that jitter does technically separate the values in space, but it is not organized by group */&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have also attached the graph it produced:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6443iCC8F304F0E58DE3D/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Program 1-results.jpg" title="Program 1-results.jpg" /&gt;&lt;/P&gt;&lt;P&gt;In R, creating the seperation I am looking for can be dong with the "position dodge" arguments when using the ggplo2 package (example below). Does SAS have anything similar?&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6444iDC8A71EE7DDB970D/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Rplot01.png" title="Rplot01.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time and your help.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2016 17:38:19 GMT</pubDate>
    <dc:creator>jdgriffin</dc:creator>
    <dc:date>2016-12-21T17:38:19Z</dc:date>
    <item>
      <title>Scatterplot Help: Graphing A Response Variable From Multiple Groups Over Time SAS University Edition</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Scatterplot-Help-Graphing-A-Response-Variable-From-Multiple/m-p/320564#M11223</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a bit of help creating a graph in SAS University Edition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am trying to do is create a scatterplot where x=response variable, y=time with 4 levels of a grouping variable. Each level of the grouping variable contains 10-12 observations at each time point. I am trying to display all observations across time, but with the observations from each group seperated in space on the chart. (I apologize if this description is lacking).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I have so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=plin2bodycomp_organized;
      scatter x=time y=weight / jitter group=Treatment_Group;
run;

/*** weight= Response Variable, Treatment_Group= Group Variable **/


/* Note that jitter does technically separate the values in space, but it is not organized by group */&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have also attached the graph it produced:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6443iCC8F304F0E58DE3D/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Program 1-results.jpg" title="Program 1-results.jpg" /&gt;&lt;/P&gt;&lt;P&gt;In R, creating the seperation I am looking for can be dong with the "position dodge" arguments when using the ggplo2 package (example below). Does SAS have anything similar?&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6444iDC8A71EE7DDB970D/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Rplot01.png" title="Rplot01.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time and your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 17:38:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Scatterplot-Help-Graphing-A-Response-Variable-From-Multiple/m-p/320564#M11223</guid>
      <dc:creator>jdgriffin</dc:creator>
      <dc:date>2016-12-21T17:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Scatterplot Help: Graphing A Response Variable From Multiple Groups Over Time SAS University Edi</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Scatterplot-Help-Graphing-A-Response-Variable-From-Multiple/m-p/320566#M11224</link>
      <description>&lt;P&gt;On your SCATTER plot statement, add GROUPDISPLAY=CLUSTER and see if that works for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 17:46:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Scatterplot-Help-Graphing-A-Response-Variable-From-Multiple/m-p/320566#M11224</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-12-21T17:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Scatterplot Help: Graphing A Response Variable From Multiple Groups Over Time SAS University Edi</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Scatterplot-Help-Graphing-A-Response-Variable-From-Multiple/m-p/320568#M11225</link>
      <description>&lt;P&gt;Thanks, DanH, that worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6445iB3998F28EBBF4FA7/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Program 1-results-2.jpg" title="Program 1-results-2.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Is there any way to change the distance between the groups clusters?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, in a related note, are there any highly recommended resources for graphing in SAS? I am new to SAS Graphing and would appreciate a solid reference.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 17:52:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Scatterplot-Help-Graphing-A-Response-Variable-From-Multiple/m-p/320568#M11225</guid>
      <dc:creator>jdgriffin</dc:creator>
      <dc:date>2016-12-21T17:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Scatterplot Help: Graphing A Response Variable From Multiple Groups Over Time SAS University Edi</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Scatterplot-Help-Graphing-A-Response-Variable-From-Multiple/m-p/320571#M11226</link>
      <description>&lt;P&gt;Use the CLUSTERWIDTH option on the SCATTER statement. It is a value between 0 and 1. The default is something like 0.85. In your case, you want to shrink the cluster width, so try a value of 0.4.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for a graphics reference (shameless plug alert :-)).... If you are working with the SG procedures, Sanjay Matange and I worked on book that should get you up-and-going with the procedures quickly. Check it out and see what you think...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sas.com/store/books/categories/examples/statistical-graphics-procedures-by-example-effective-graphs-using-sas-/prodBK_63855_en.html" target="_blank"&gt;https://www.sas.com/store/books/categories/examples/statistical-graphics-procedures-by-example-effective-graphs-using-sas-/prodBK_63855_en.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;BR /&gt;Dan&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 18:02:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Scatterplot-Help-Graphing-A-Response-Variable-From-Multiple/m-p/320571#M11226</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-12-21T18:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Scatterplot Help: Graphing A Response Variable From Multiple Groups Over Time SAS University Edi</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Scatterplot-Help-Graphing-A-Response-Variable-From-Multiple/m-p/320573#M11227</link>
      <description>&lt;P&gt;You can also subscribe to "Graphically Speaking" blog for articles on graphing with SAS.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 18:04:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Scatterplot-Help-Graphing-A-Response-Variable-From-Multiple/m-p/320573#M11227</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-12-21T18:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Scatterplot Help: Graphing A Response Variable From Multiple Groups Over Time SAS University Edi</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Scatterplot-Help-Graphing-A-Response-Variable-From-Multiple/m-p/320583#M11232</link>
      <description>&lt;P&gt;Thanks again, DanH. This is exactly what I was looking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks also for the recommendation, I appreciate it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6447iF3BDBA49D47187EB/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Program 1-results-3.jpg" title="Program 1-results-3.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 18:39:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Scatterplot-Help-Graphing-A-Response-Variable-From-Multiple/m-p/320583#M11232</guid>
      <dc:creator>jdgriffin</dc:creator>
      <dc:date>2016-12-21T18:39:42Z</dc:date>
    </item>
  </channel>
</rss>

