title: R:create bubble chart
body: <p>I have a data frame contain category, function and numbers.</p>
  
  <pre><code>&gt;fun_category_df
  
            sec_category                sec_function `Number of Patents`
   1  cleaning apparatus                    cleaning                   2
   2  cleaning apparatus    enhance material removal                   2
   3  cleaning apparatus improve slurry distribution                   2
   4 detecting apparatus    enhance material removal                   6
   5 detecting apparatus          improve uniformity                   6
   6    dresser abrasive    enhance material removal                   5
   7    dresser abrasive   improve process stability                   3
   8    dresser abrasive             improve quality                   2
   9    dresser abrasive          improve uniformity                   9
  10   dresser structure          improve uniformity                   3
  # ... with 38 more rows
  </code></pre>
  
  <p>I want to create a bubble chart base on my data frame.
  I have tried use ggplot2 to create it.</p>
  
  <pre><code>library(ggplot2)
  bubble &lt;- ggplot(fun_category_df, 
                   aes(x =sec_category  , y = sec_function , size = `Number of Patents`)) %&gt;%
            + geom_point() + theme(axis.text.x = element_text(angle = 90, hjust = 1))
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/hKJ6d.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hKJ6d.jpg" alt="enter image description here"></a></p>
  
  <p>But the bubble only have 3 size to show. </p>
  
  <p>How can I set the the bubble seize follow the "Number of Patents"?</p>
  
  <p>Furthermore, I also want to tag number labels on each bubble. Like the following example.</p>
  
  <p><a href="https://i.stack.imgur.com/bNLkz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bNLkz.png" alt="enter image description here"></a></p>