title: How do I plot a bubble chart with two different size aesthetics
body: <p>The code below creates some sample data -</p>
  <pre><code>  library(tidyverse)
    library(ggrepel)
    
    location = c(&quot;Houston&quot;, &quot;Orlando&quot;, &quot;Baltimore&quot;, &quot;Twin Cities&quot;, &quot;Fairfax&quot;, &quot;Restion&quot;)
    cys = c(34000, 67000, 78000, 67000, 45000, 78000)
    ebi = c(60000, 34000, 56000, 78000, 34000, 90000)
    ability = c(.50, .78, .67, .56, .79, .65)
    potential = c(.70, .89, .78, .67, .80, .70)
    segment = c(&quot;Constant Growth&quot;, &quot;Generally Up&quot;, &quot;Generally Down&quot;, &quot;Slow Decline&quot;, &quot;Constant Decline&quot;,
                &quot;Constant Growth&quot;)
  
    data = tibble(location, cys, ebi, ability, potential, segment)  
    
    data
    
  </code></pre>
  <p>I would like to make a plot with -</p>
  <ul>
  <li>ability on the x axis</li>
  <li>potential on the y axis</li>
  <li>cys as the bubble size</li>
  <li>ebi as the ring size</li>
  <li>segment as the bubble fill (constant growth = dark green, generally up = light green, generally down = grey, slow decline = light red, constant decline = dark red.</li>
  </ul>
  <p>See attached picture to understand what I mean by ring size and bubble size</p>
  <p><a href="https://i.stack.imgur.com/tNeuu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tNeuu.png" alt="enter image description here" /></a></p>
  <p>I have used the following code to plot the x and y axis with cys as the bubble size -</p>
  <pre><code>data %&gt;% 
    ggplot(aes(ability, potential))+
    geom_point(aes(label = cys, size = cys))+
    geom_text_repel(aes(label = location))
  </code></pre>
  <p>However I am unsure how to add the ring size (ebi) on top of cys. Can anyone help me with this. I feel like I have so somehow set the ebi fill as white and color as blue, then somehow add cys on top on that.</p>
  <p>Note - if cys exceeds ebi (like Orlando), I would like to still be able to see the ebi ring with the cys bubble overlapping. See screenshot below as an example-</p>
  <p><a href="https://i.stack.imgur.com/hy2Ur.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hy2Ur.png" alt="enter image description here" /></a></p>