How to weigh plot bubbles


#1

Hi everyone,
I am a novice of R studio, i am conducting a meta-analysis, but i am stuck at a point. While doing meta-regression analysis i am unable to give size to bubbles according to my studies sample sizes. My plot is simple scatter , can i have any suggestions to how to give weigh to this scatter plot?


#2

You can use geom_point and map to the size aesthetic. The default behavior will map size to radius, but if you want the size to be represented by area, you can add the scale_size_area() scale. For example,

ggplot(your_data, aes(x, y, size = weight_variable)) +
  geom_point() +
  scale_size_area()

http://t-redactyl.io/blog/2016/02/creating-plots-in-r-using-ggplot2-part-6-weighted-scatterplots.html


#3

Thank you Jonspring, i believe it will be very helpful, i will follow this and update you.