A county-level choropleth map
The 2018 Senate race in Florida was extremely contentious, and was not resolved on election night. The race was too close to call, and the recount process was as controversial as the race, with accusations of poorly designed ballots reminiscent of the infamous butterfly ballot in the 2000 presidential election, and a slew of legal challenges.
In this exercise, your task is to create a county-level choropleth map of the percentage of the two-party vote that the Republican candidate, Rick Scott (the ultimate winner of the race), received according to the first set of results (pre-recount).
The results are in fl_results
and the county boundaries are in fl_boundaries
. plotly
has already been loaded for you.
Cet exercice fait partie du cours
Interactive Data Visualization with plotly in R
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
# Join the fl_boundaries and fl_results data frames
senate_vote <- left_join(___, ___, by = ___(___ = ___))