How to Create Bubble Charts in R with geom_point() and scale_size()

Published 2022-03-06
In this tutorial I show you how to create Bubble Charts in R with geom_point() and ggplot().
I will explain the different scale_size() function to you and provide an example of mapping cities to the United States based on population size.
Then I will show you how to make the gapminder data interactive or turn it into an animation.

⏱ Time Stamps ⌚

0:00 - Intro and video overview
0:59 - scale_size() function arguments
5:10 - Mapping US cities with usmap()
10:20 - Interactive bubble chart with plotly()
17:03 - Animating the gapminder dataset

External Links:
www.r-graph-gallery.com/bubble-chart.html
cran.r-project.org/web/packages/usmap/vignettes/ma…

All Comments (6)
  • @seyisonade1194
    I went through some of your videos on the 30Days Charts Challenge... They were really GREAT... value adding and top notch. Often times,you would give examples using base R and then tidyverse approach_ relatable, rich and real life datasets application. Thanks for all you do and represents. Thanks for the time, efforts and large heartedness to put them together for others learning and edification. God bless you and yours!
  • @AlexisMelo
    Always great contend! Thanks for bringing it to us so neatly.
  • @kisho2679
    how can the size of the bubbles be shown as a 4th variable inside a xyz 3d-plot (each bubble being labeled and colour coded)?