<?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 Regression line / trendline in GPLOT Bubble Chart in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Regression-line-trendline-in-GPLOT-Bubble-Chart/m-p/562638#M157629</link>
    <description>&lt;P&gt;Is it possible to add a trendline / regression line to a bubble chart created with gplot?&amp;nbsp; I have a gplot statement similar to this, which successfully creates a bubble plot, however I want to add a trendline. I saw options for doing this on scatterplots but couldn't find anything for a bubble plot.&amp;nbsp; I am programming within SAS Enterprise Guide 7.1.&amp;nbsp; Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;gplot&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=LIBNAME.MYDATA; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;bubble&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Errors*Volume=share / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;bsize&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;7&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;bcolor&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=clear &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;bfill&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=solid &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ctext&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=black &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;cframe&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=white &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;haxis&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=axis1 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;vaxis&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=axis2 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;href&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;16&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;chref&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=blue &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;lhref&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;vref&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;cvref&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=blue &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;lvref&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;annotate&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=labels;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 May 2019 18:19:20 GMT</pubDate>
    <dc:creator>brookeewhite1</dc:creator>
    <dc:date>2019-05-30T18:19:20Z</dc:date>
    <item>
      <title>Regression line / trendline in GPLOT Bubble Chart</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-line-trendline-in-GPLOT-Bubble-Chart/m-p/562638#M157629</link>
      <description>&lt;P&gt;Is it possible to add a trendline / regression line to a bubble chart created with gplot?&amp;nbsp; I have a gplot statement similar to this, which successfully creates a bubble plot, however I want to add a trendline. I saw options for doing this on scatterplots but couldn't find anything for a bubble plot.&amp;nbsp; I am programming within SAS Enterprise Guide 7.1.&amp;nbsp; Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;gplot&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=LIBNAME.MYDATA; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;bubble&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Errors*Volume=share / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;bsize&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;7&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;bcolor&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=clear &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;bfill&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=solid &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ctext&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=black &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;cframe&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=white &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;haxis&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=axis1 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;vaxis&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=axis2 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;href&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;16&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;chref&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=blue &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;lhref&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;vref&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;cvref&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=blue &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;lvref&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;annotate&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=labels;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 18:19:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-line-trendline-in-GPLOT-Bubble-Chart/m-p/562638#M157629</guid>
      <dc:creator>brookeewhite1</dc:creator>
      <dc:date>2019-05-30T18:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regression line / trendline in GPLOT Bubble Chart</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-line-trendline-in-GPLOT-Bubble-Chart/m-p/562642#M157632</link>
      <description>&lt;P&gt;It's certainly possible in PROC SGPLOT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect it is possible (but haven't actually tried) in PROC GPLOT by using the I=RL option in the SYMBOL statement.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 19:00:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-line-trendline-in-GPLOT-Bubble-Chart/m-p/562642#M157632</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-05-30T19:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Regression line / trendline in GPLOT Bubble Chart</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-line-trendline-in-GPLOT-Bubble-Chart/m-p/562693#M157643</link>
      <description>&lt;P&gt;You can overlay the Bubble and Reg Plots with PROC SGPLOT like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title 'Bubble Plot with Regression Line';
proc sgplot data=sashelp.class noautolegend;
  bubble x=height y=weight size=age;
  reg x=height y=weight / nomarkers;
run;
title;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 May 2019 19:41:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-line-trendline-in-GPLOT-Bubble-Chart/m-p/562693#M157643</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-05-30T19:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Regression line / trendline in GPLOT Bubble Chart</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-line-trendline-in-GPLOT-Bubble-Chart/m-p/563334#M157912</link>
      <description>&lt;P&gt;Thank you, draycut!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This did produce a&amp;nbsp;nice looking chart with regression line. I had quite a few options specified in GPLOT. Now that I've switched from GPLOT to SGPLOT, I'll see if I can find the same or similar options available under SGPLOT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 17:02:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-line-trendline-in-GPLOT-Bubble-Chart/m-p/563334#M157912</guid>
      <dc:creator>brookeewhite1</dc:creator>
      <dc:date>2019-06-03T17:02:47Z</dc:date>
    </item>
  </channel>
</rss>

