<?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: proc sgplot bubble plot with group coloring in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring/m-p/430519#M14868</link>
    <description>Just noticed that I had noautolegend - removing that shows the legend.&lt;BR /&gt;</description>
    <pubDate>Wed, 24 Jan 2018 16:16:34 GMT</pubDate>
    <dc:creator>csetzkorn</dc:creator>
    <dc:date>2018-01-24T16:16:34Z</dc:date>
    <item>
      <title>proc sgplot bubble plot with group coloring</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring/m-p/430494#M14861</link>
      <description>&lt;P&gt;I am using this macrotised code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro PlotMacro(Title, Footnote, X, Y, Z);
	title &amp;amp;Title.;
	proc sgplot data=SomeData 
		noautolegend;
	  bubble X = &amp;amp;X. Y = &amp;amp;Y. size= &amp;amp;Z. /  
	    transparency=0.4 datalabelattrs=(size=9 weight=bold);
	run;
%mend;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is there a way to color the bubbles according to a 'group/class' column in SomeData.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 15:34:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring/m-p/430494#M14861</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2018-01-24T15:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot bubble plot with group coloring</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring/m-p/430499#M14862</link>
      <description>&lt;P&gt;Use the GROUP= option in the bubble statement after the / as in this very simple example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title "Bubble plot by Sex";
proc sgplot data=sashelp.class noautolegend;
  bubble x=height y=weight size=age / group=sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, why do you use a macro to do this?&amp;nbsp;It just seems like more typing to me.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 15:50:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring/m-p/430499#M14862</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-01-24T15:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot bubble plot with group coloring</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring/m-p/430501#M14863</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a group option in the Bubble statement. I believe you can use that to color the bubbles, i.e. group=column (in Somedata)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kriss&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 15:46:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring/m-p/430501#M14863</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2018-01-24T15:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot bubble plot with group coloring</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring/m-p/430502#M14864</link>
      <description>&lt;P&gt;The bubble plot supports the group option which will color the bubbles based on a character variable. &amp;nbsp;It also supports the color response option which will color the bubbles based on a numeric variable.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 15:46:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring/m-p/430502#M14864</guid>
      <dc:creator>ScottS_SAS</dc:creator>
      <dc:date>2018-01-24T15:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot bubble plot with group coloring</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring/m-p/430507#M14865</link>
      <description>Thanks. I just noticed this. I use ... /group = Bla. Any idea how I can add a legend based on Bla?</description>
      <pubDate>Wed, 24 Jan 2018 15:53:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring/m-p/430507#M14865</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2018-01-24T15:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot bubble plot with group coloring</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring/m-p/430510#M14866</link>
      <description>&lt;P&gt;Something like in this example?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title "Bubble plot by Sex";
proc sgplot data=sashelp.class noautolegend;
  bubble x=height y=weight size=age / group=sex;
  keylegend / position=nw location=inside across=1;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Jan 2018 15:56:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring/m-p/430510#M14866</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-01-24T15:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot bubble plot with group coloring</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring/m-p/430511#M14867</link>
      <description>&lt;P&gt;The sgplot procedure will automatically create a legend based on the group variable. &amp;nbsp;Remove the no auto legend from your program, and you should then see the legend.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 15:59:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring/m-p/430511#M14867</guid>
      <dc:creator>ScottS_SAS</dc:creator>
      <dc:date>2018-01-24T15:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot bubble plot with group coloring</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring/m-p/430519#M14868</link>
      <description>Just noticed that I had noautolegend - removing that shows the legend.&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Jan 2018 16:16:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring/m-p/430519#M14868</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2018-01-24T16:16:34Z</dc:date>
    </item>
  </channel>
</rss>

