<?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: Proportionally Sized Bubble Plots in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proportionally-Sized-Bubble-Plots/m-p/371110#M12827</link>
    <description>&lt;P&gt;Something like this. You have to add the bubble size you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods graphics on;
ods output EffectPlot=EffectPlot;&lt;BR /&gt;
proc logistic data=done4 plots(only)=(roc(id=obs) effect);
model parentdys/n=newfair0 / scale=none
clparm=wald
clodds=pl   
rsquare;
units newfair0=1.00; output out=t/ profile;
run;

ods graphics off;

proc sgplot data= EffectPlot;
  band   x=_XVAR     upper=_UPPER  lower=_LOWER ;
  spline x=_XVAR     y=_PROB;
  bubble x=_XVAR_OBS y=_PROPORTION size=_PROPORTION ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/9906i6FCDDD2A1F3CE514/image-size/original?v=1.0&amp;amp;px=-1" alt="aaa1.PNG" title="aaa1.PNG" border="0" /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2017 01:32:28 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2017-06-28T01:32:28Z</dc:date>
    <item>
      <title>Proportionally Sized Bubble Plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proportionally-Sized-Bubble-Plots/m-p/370678#M12808</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;I have here an example of logistic regression, which spits out the graph of probabilty curve. On this graph, each dot represent all kids that scored a certain standard score (z score)&amp;nbsp;on the NEWFAIR0 test. Now, I want the dots to reflect the&amp;nbsp;numerus they represent, such that if a dot represents one kid, it should be smaller, and if it represents, say, 15 kids, it should be bigger. A dot in my data can represent from 1 to 31 kids. Here is my data and my code for logistic regression, but I dont know how to make the size of the dots proportional to the&amp;nbsp;numerus of kids they represent. Thanks!!&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; done4; &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; newfair0 parentdys N;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;-3.21 1 1&lt;/P&gt;&lt;P&gt;-2.67 2 3&lt;/P&gt;&lt;P&gt;-2.6 1 1&lt;/P&gt;&lt;P&gt;-2.34 2 4&lt;/P&gt;&lt;P&gt;-1.93 1 3&lt;/P&gt;&lt;P&gt;-1.8 1 1&lt;/P&gt;&lt;P&gt;-1.73 2 2&lt;/P&gt;&lt;P&gt;-1.66 2 2&lt;/P&gt;&lt;P&gt;-1.59 2 2&lt;/P&gt;&lt;P&gt;-1.53 1 1&lt;/P&gt;&lt;P&gt;-1.46 1 3&lt;/P&gt;&lt;P&gt;-1.39 1 1&lt;/P&gt;&lt;P&gt;-1.33 1 9&lt;/P&gt;&lt;P&gt;-1.19 2 2&lt;/P&gt;&lt;P&gt;-1.12 3 3&lt;/P&gt;&lt;P&gt;-1.06 1 5&lt;/P&gt;&lt;P&gt;-0.99 2 2&lt;/P&gt;&lt;P&gt;-0.92 1 4&lt;/P&gt;&lt;P&gt;-0.85 1 2&lt;/P&gt;&lt;P&gt;-0.79 2 5&l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lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;graphics&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;on&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;logistic&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=done4 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;plots&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;only&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;)=(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;roc&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;id&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=obs) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;effect&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;model&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; parentdys/n=newfair0 / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;scale&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=none&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;clparm&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=wald&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;clodds&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=pl&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;rsquare&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;units&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; newfair0=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1.00&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;graphics&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;off&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13988i3A742208322E0BF0/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Probability Curve Fair Spelling ParentDys_PopZaInconsist.jpg" title="Probability Curve Fair Spelling ParentDys_PopZaInconsist.jpg" /&gt;</description>
      <pubDate>Mon, 26 Jun 2017 17:50:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proportionally-Sized-Bubble-Plots/m-p/370678#M12808</guid>
      <dc:creator>Zumba_Apple</dc:creator>
      <dc:date>2017-06-26T17:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proportionally Sized Bubble Plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proportionally-Sized-Bubble-Plots/m-p/370721#M12811</link>
      <description>&lt;P&gt;Does this help you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2012/03/05/proportionally-sized-bubble-plots/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2012/03/05/proportionally-sized-bubble-plots/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 19:27:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proportionally-Sized-Bubble-Plots/m-p/370721#M12811</guid>
      <dc:creator>collinelliot</dc:creator>
      <dc:date>2017-06-26T19:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proportionally Sized Bubble Plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proportionally-Sized-Bubble-Plots/m-p/370722#M12812</link>
      <description>&lt;P&gt;Thank you. I have already looked at that website. Even though it is helpful in general, it does not help a lot in my case where the probabilities on the y axis are generated by the log regression, so you cannot define them as y=.... in the proc template. That's my main issue - what the code would be for y&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 19:33:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proportionally-Sized-Bubble-Plots/m-p/370722#M12812</guid>
      <dc:creator>Zumba_Apple</dc:creator>
      <dc:date>2017-06-26T19:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proportionally Sized Bubble Plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proportionally-Sized-Bubble-Plots/m-p/370747#M12813</link>
      <description>&lt;P&gt;There are times when to get the graph you want you generate a data set from a procedure and plot that with tools with more controls.&lt;/P&gt;
&lt;P&gt;Most of the analysis procedure charts are designed more for analysis than publication.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 20:29:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proportionally-Sized-Bubble-Plots/m-p/370747#M12813</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-26T20:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proportionally Sized Bubble Plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proportionally-Sized-Bubble-Plots/m-p/370749#M12814</link>
      <description>&lt;P&gt;Thanks. Any ideas how i could do that in my case?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 20:32:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proportionally-Sized-Bubble-Plots/m-p/370749#M12814</guid>
      <dc:creator>Zumba_Apple</dc:creator>
      <dc:date>2017-06-26T20:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proportionally Sized Bubble Plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proportionally-Sized-Bubble-Plots/m-p/371110#M12827</link>
      <description>&lt;P&gt;Something like this. You have to add the bubble size you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods graphics on;
ods output EffectPlot=EffectPlot;&lt;BR /&gt;
proc logistic data=done4 plots(only)=(roc(id=obs) effect);
model parentdys/n=newfair0 / scale=none
clparm=wald
clodds=pl   
rsquare;
units newfair0=1.00; output out=t/ profile;
run;

ods graphics off;

proc sgplot data= EffectPlot;
  band   x=_XVAR     upper=_UPPER  lower=_LOWER ;
  spline x=_XVAR     y=_PROB;
  bubble x=_XVAR_OBS y=_PROPORTION size=_PROPORTION ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/9906i6FCDDD2A1F3CE514/image-size/original?v=1.0&amp;amp;px=-1" alt="aaa1.PNG" title="aaa1.PNG" border="0" /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 01:32:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proportionally-Sized-Bubble-Plots/m-p/371110#M12827</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-06-28T01:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proportionally Sized Bubble Plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proportionally-Sized-Bubble-Plots/m-p/371113#M12828</link>
      <description>&lt;P&gt;Thanks!! That's exactly what I needed - a code that gets me started from somewhere. Will look into it in more detail.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 01:36:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proportionally-Sized-Bubble-Plots/m-p/371113#M12828</guid>
      <dc:creator>Zumba_Apple</dc:creator>
      <dc:date>2017-06-28T01:36:35Z</dc:date>
    </item>
  </channel>
</rss>

