<?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: Proportional scatter plot with means and regression line in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proportional-scatter-plot-with-means-and-regression-line/m-p/252946#M9154</link>
    <description>&lt;P&gt;You can also use the ASPECT= option on the PROC SGPLOT statement. For a comparison of the various options, see the article&amp;nbsp;&lt;A href="http://blogs.sas.com/content/iml/2015/11/30/preserve-aspect-ratio-data-ods-graphics.html" target="_self"&gt;"Preserving the aspect ratio of th data in ODS graphics."&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 27 Feb 2016 17:45:48 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2016-02-27T17:45:48Z</dc:date>
    <item>
      <title>Proportional scatter plot with means and regression line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proportional-scatter-plot-with-means-and-regression-line/m-p/252932#M9151</link>
      <description>&lt;P&gt;Hi, I need a diagram to show covariance/correlation attributes of my bivariate data. My idea was a scatter plot which is proportional for both variables (1 unit on the x-axis has the same lengh as 1 unit on the y-axis) and contains a line for each mean and one for the regression line. This way the degree in which extreme values of x are associated with extreme values of y could be graphically assessed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A scatter plot with a regression line is no problem in SAS but I couldn't find options&amp;nbsp;to make the diagram proportional and to plot lines for the means.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 15:19:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proportional-scatter-plot-with-means-and-regression-line/m-p/252932#M9151</guid>
      <dc:creator>Jazzman</dc:creator>
      <dc:date>2016-02-27T15:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proportional scatter plot with means and regression line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proportional-scatter-plot-with-means-and-regression-line/m-p/252939#M9153</link>
      <description>&lt;P&gt;What you need is what is known as an EQUATED container in GTL. &amp;nbsp;SGPLOT&amp;nbsp;scripts out the&amp;nbsp;LAYOUT OVERLAY to create the graph. &amp;nbsp;What you can do is use the TMPLOUT="filename" option on the SGPLOT statement to get the GTL Template scripted by SGPLOT. &amp;nbsp;Edit this program, replace LAYOUT OVERLAY with LAYOUT OVERLAYEQUATED. &amp;nbsp;Then,&amp;nbsp;compile the template, and run proc SGRENDER with your data and this new template.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc template;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; define statgraph sgplot;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &lt;STRONG&gt;layout OVERLAYEQUATED / &amp;lt;options&amp;gt;;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;keep these statements&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; endlayout;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See example here; &amp;nbsp;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2011/12/19/map-overlays/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2011/12/19/map-overlays/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgrender data=&amp;lt;your data&amp;gt; template=sgplot;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on the program, you may need to remove / replace some of the options on the LAYOUT statement.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 17:15:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proportional-scatter-plot-with-means-and-regression-line/m-p/252939#M9153</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-02-27T17:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proportional scatter plot with means and regression line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proportional-scatter-plot-with-means-and-regression-line/m-p/252946#M9154</link>
      <description>&lt;P&gt;You can also use the ASPECT= option on the PROC SGPLOT statement. For a comparison of the various options, see the article&amp;nbsp;&lt;A href="http://blogs.sas.com/content/iml/2015/11/30/preserve-aspect-ratio-data-ods-graphics.html" target="_self"&gt;"Preserving the aspect ratio of th data in ODS graphics."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 17:45:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proportional-scatter-plot-with-means-and-regression-line/m-p/252946#M9154</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-02-27T17:45:48Z</dc:date>
    </item>
  </channel>
</rss>

