<?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: Changing the size of the bubbles in SGPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-the-bubbles-in-SGPLOT/m-p/347913#M12066</link>
    <description>&lt;P&gt;Based on your data step, it appears that you are trying to create bubbles of a constant size. The intent of a BUBBLE plot is to have varying sized bubbles to reflect the changes in a third variable. I think what you might want is a SCATTER plot with CIRCLEFILLED markers. Something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.class;
scatter x=weight y=height / markerattrs=(symbol=circlefilled size=21px) 
           filledoutlinedmarkers group=sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2017 20:12:00 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2017-04-06T20:12:00Z</dc:date>
    <item>
      <title>Changing the size of the bubbles in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-the-bubbles-in-SGPLOT/m-p/347901#M12063</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help with changing the size of the bubbles in SGPLOT? The bubbles in my graph below are not proportional to the size of each cell. I would like to make them smaller than how they look in the graph. In the preceeding data step I tried to change the value of the "size" variable but it did not seem to help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recep&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _009;&lt;BR /&gt;merge _007 _008 rprt1516.bc_population_estimates_by_age;&lt;BR /&gt;by age_group_1;&lt;BR /&gt;dad_per_100000=100000*dad_count/population;&lt;BR /&gt;bctr_per_100000=100000*bctr_count/population;&lt;/P&gt;&lt;P&gt;size=0.1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=_009;&lt;BR /&gt;bubble x=age_group_1 y=dad_count size=size / LEGENDLABEL= "All hospitalizations"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FILLATTRS=(color=red transparency=0.6);&lt;BR /&gt;bubble x=age_group_1 y=bctr_count size=size / LEGENDLABEL= "BCTR hospitalizations (ISS&amp;gt;=9 or died)"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FILLATTRS=(color=blue transparency=0.6);&lt;/P&gt;&lt;P&gt;xaxis display=all label='Age group' fitpolicy=rotate;&lt;BR /&gt;yaxis label='Total cases' offsetmin=.17;&lt;BR /&gt;run;&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/8195i14618928DB072B2B/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="SGPlot15.png" title="SGPlot15.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 19:54:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-the-bubbles-in-SGPLOT/m-p/347901#M12063</guid>
      <dc:creator>Recep</dc:creator>
      <dc:date>2017-04-06T19:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the size of the bubbles in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-the-bubbles-in-SGPLOT/m-p/347907#M12064</link>
      <description>&lt;P&gt;Can you post an example that references a SASHELP dataset so we can replicate the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should be the SIZE that controls the size.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Was there any messages in the log?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 20:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-the-bubbles-in-SGPLOT/m-p/347907#M12064</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-06T20:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the size of the bubbles in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-the-bubbles-in-SGPLOT/m-p/347912#M12065</link>
      <description>&lt;P&gt;For Bubble plot, size=column uses the BRADIUSMIN and BRADIUSMAX to map the values from the column. &amp;nbsp;If the column has only one value, all bubbles will be of the size specified by BRADIUSMIN. &amp;nbsp;So, in this case you can set the BRADIUSMIN and BRADIUSMAX values to what you want. &amp;nbsp;Please see product documentation.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 20:08:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-the-bubbles-in-SGPLOT/m-p/347912#M12065</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-04-06T20:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the size of the bubbles in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-the-bubbles-in-SGPLOT/m-p/347913#M12066</link>
      <description>&lt;P&gt;Based on your data step, it appears that you are trying to create bubbles of a constant size. The intent of a BUBBLE plot is to have varying sized bubbles to reflect the changes in a third variable. I think what you might want is a SCATTER plot with CIRCLEFILLED markers. Something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.class;
scatter x=weight y=height / markerattrs=(symbol=circlefilled size=21px) 
           filledoutlinedmarkers group=sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 20:12:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-the-bubbles-in-SGPLOT/m-p/347913#M12066</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2017-04-06T20:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the size of the bubbles in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-the-bubbles-in-SGPLOT/m-p/347917#M12067</link>
      <description>&lt;P&gt;Thanks a lot Sanjay! It resolved my problem easily...&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 20:18:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-the-bubbles-in-SGPLOT/m-p/347917#M12067</guid>
      <dc:creator>Recep</dc:creator>
      <dc:date>2017-04-06T20:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the size of the bubbles in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-the-bubbles-in-SGPLOT/m-p/347919#M12068</link>
      <description>&lt;P&gt;Thanks a lot for your response Dan! Sanjay's solution resolved my problem. Though I'll try to use the scatter option instead of bubbles as I believe there are a bit more flexibility with the scatter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recep&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 20:20:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-the-bubbles-in-SGPLOT/m-p/347919#M12068</guid>
      <dc:creator>Recep</dc:creator>
      <dc:date>2017-04-06T20:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the size of the bubbles in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-the-bubbles-in-SGPLOT/m-p/347921#M12069</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the dataset:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;age_group_1&lt;/TD&gt;&lt;TD&gt;dad_count&lt;/TD&gt;&lt;TD&gt;bctr_count&lt;/TD&gt;&lt;TD&gt;population&lt;/TD&gt;&lt;TD&gt;dad_per_100000&lt;/TD&gt;&lt;TD&gt;bctr_per_100000&lt;/TD&gt;&lt;TD&gt;size&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0-15&lt;/TD&gt;&lt;TD&gt;1580&lt;/TD&gt;&lt;TD&gt;241&lt;/TD&gt;&lt;TD&gt;691527&lt;/TD&gt;&lt;TD&gt;228.48&lt;/TD&gt;&lt;TD&gt;34.85&lt;/TD&gt;&lt;TD&gt;0.1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;16-19&lt;/TD&gt;&lt;TD&gt;575&lt;/TD&gt;&lt;TD&gt;156&lt;/TD&gt;&lt;TD&gt;272558&lt;/TD&gt;&lt;TD&gt;210.96&lt;/TD&gt;&lt;TD&gt;57.236&lt;/TD&gt;&lt;TD&gt;0.1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20-24&lt;/TD&gt;&lt;TD&gt;938&lt;/TD&gt;&lt;TD&gt;280&lt;/TD&gt;&lt;TD&gt;326885&lt;/TD&gt;&lt;TD&gt;286.95&lt;/TD&gt;&lt;TD&gt;85.657&lt;/TD&gt;&lt;TD&gt;0.1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;25-29&lt;/TD&gt;&lt;TD&gt;1004&lt;/TD&gt;&lt;TD&gt;293&lt;/TD&gt;&lt;TD&gt;317345&lt;/TD&gt;&lt;TD&gt;316.37&lt;/TD&gt;&lt;TD&gt;92.329&lt;/TD&gt;&lt;TD&gt;0.1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30-34&lt;/TD&gt;&lt;TD&gt;856&lt;/TD&gt;&lt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TD&gt;&lt;TD&gt;69643&lt;/TD&gt;&lt;TD&gt;4434.04&lt;/TD&gt;&lt;TD&gt;538.46&lt;/TD&gt;&lt;TD&gt;0.1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;90+&lt;/TD&gt;&lt;TD&gt;3146&lt;/TD&gt;&lt;TD&gt;298&lt;/TD&gt;&lt;TD&gt;42203&lt;/TD&gt;&lt;TD&gt;7454.45&lt;/TD&gt;&lt;TD&gt;706.111&lt;/TD&gt;&lt;TD&gt;0.1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't got any message in the log. Sanjay's solution was quite easy to apply.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 20:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-size-of-the-bubbles-in-SGPLOT/m-p/347921#M12069</guid>
      <dc:creator>Recep</dc:creator>
      <dc:date>2017-04-06T20:22:33Z</dc:date>
    </item>
  </channel>
</rss>

