This document is the Tableau implementation of the more general, conceptual discussion regarding maps.
Symbol Map: Largest Italian Cities
We use the simplemaps.com free data base of almost 48,000 cities.
- Download and prepare the data file, worldcities.xlsx. Delete the city column with its non-ASCII characters.
- Read the data into Tableau.
- Tableau does not recognize the abbreviation Lng for Longitude, so select and choose
Geographic Role, thenLongitude. - Use the Longitude and Latitude provided by the data file, not that generated by Tableau as it cannot probably classify thousands of the provided cities. Drag Lat to the
Rowsshelf and Lng to theColumnsshelf. - Drag the country variable to the
Filterscard and selectItaly. - Go to the main menu select
Analysisand then click onAggregate Measures, which will disaggregate. - Drag the population variable over to the
Filterscard and indicate a minimum value of 250,000. - Create a bubble chart by dragging the population variable over to the
Sizemark - Options:
- change the color of the plotted bubbles: Click on the
Colormark - enhance the tooltips when hovering the mouse over a city: Drag the
cityover theTooltipmark - change the background map: Map menu, choose Background Maps, then Satellite
- change the color of the plotted bubbles: Click on the
- Add labels to the bars [optional]: Select the numerical variable and drag to the
Labelmark.- Tableau will again default aggregate to Sum for the labels even if the aggregation on the bar chart y-axis is AVG.
- Usually change that aggregation for the labels to be the same aggregation on the y-axis for consistency.
The link to the video of examples of these processes follows.
Video: Larger Italian Cities. [6:44]
Choropleth Map: Gini Index USA States
If you wish to follow along with the video, find the data file at:
web.pdx.edu/~gerbing/0Viz/Maps/data/Gini2021byState.xlsx
- Read the Excel data file containing the State names and the Gini coefficients into Tableau.
- Assign the State variable, ID, as a geographic object. Right-click the ID variable in the data pane, then choose
Geographic Role->State/Province. - Create the map.
- drag the ID field to the
Rowsshelf - drag the Gini variable to the
Colormark - go to the
Show Mepalette and click on the filled map icon: Second row. middle column
- drag the ID field to the
- Hold the Shift key and drag the map to focus on the main body of the USA
- Option: Choose a different color palette from the
Colormark
The link to the video of examples of these processes follows.
Video: Choropleth map of the United States. [3:39]
City Map: Portland with Custom Geocodes
If you wish to follow along with the video, find the data file at:
web.pdx.edu/~gerbing/0Viz/Maps/data/PDXgeocodes.xlsx
- Prepare the Excel data file with the location name, address, and any additional information.
- Read the data file into R.
- Check to make sure that the longitude and latitude variables are recognized as geographical information, geocodes.
- Drag the latitude variable to the
Rowsshelf and the longitudinal variable to theColumnsshelf. - Go to the main menu select
Analysisand then click onAggregate Measures, which will disaggregate the plotted values. - Go to the main menu, select
Maps, thenBackground Maps, thenStreets. - To create a bubble plot, drag a numerical variable such as Profit over to the
Sizemark
The link to the video of examples of these processes follows.
Video: Map of Portland Locations. [3:43]