Bubble charts
To begin your exploration of the U.S. economic index data set, your task is to create a bubble chart of of the housing price index against real GDP. Further, you will add color to represent the region of the U.S. to explore potential regional clustering.
Throughout this exercise, you will also explore how changing the sizemode
of the marker
argument can help polish the plot.
plotly
, dplyr
, and the us_economy
data set have already been loaded.
This exercise is part of the course
Intermediate Interactive Data Visualization with plotly in R
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# filter out the 2017 data
us_economy %>%
___(___ == ___)