Plots on Geographical Maps
While the previous plots were great for visualizing more global trends – such as countries or states – what if we want to represent features in smaller regions, say within individual states? In this section, you will learn how to draw scatter plots and bubble plots on maps. The most intuitive plot of this type is one that simply pinpoints certain locations of interest on the map.
Scatter Plots
We will be plotting the locations of Walmart stores on a map of the US. This dataset is publicly available at: https://github.com/plotly/datasets/ on the plotly
website, and has been made available on the GitHub book repository. Let's look at an exercise on how to do so.
Exercise 49: Creating a Scatter Plot on a Geographical Map
In this exercise, we'll use the Walmart store openings dataset from 1962-2006
(available at: https://raw.githubusercontent.com/TrainingByPackt/Interactive-Data-Visualization-with-Python/master/datasets...