Author: FG
Date: December 1, 2022
Plotly allows for nice maps: https://plotly.com/r/choropleth-maps/.
Data for this visualization is from the {datasets} package in R:
state.abb: 2-letter abbreviations for the state namesstate.x77: US State Facts and Figures
Two steps are fundamental:
- setup the map options on a list for the
geoargument in thelayout()function - specify
location,locationmodeandtype = 'choropleth'in theplot.ly()function