This module introduces maps in Tableau. We will cover best practices for using maps, as well as how to create different types of maps in Tableau.
Outcomes:
A fill map in Tableau colors geographic regions (i.e., states, countries, counties) based on a measure. It relies on an area mapping, rather than points. Common areas include countries, states, counties, or zip codes.
A fill map connects a single data attribute to color. Color can represent either a continuous or discrete variable (such as population or region).
Tableau needs to be able to understand the geographic roles of the data. It does this by recognizing certain field names (i.e., “State”, “Country”, etc…) or by manually assigning geographic roles to fields. If it does not understand the geographic role, it will not be able to create a map.
Creating a Fill Map:
A point map in Tableau uses dots to represent data points on a map. Each dot corresponds to a specific location, such as a city or address. Point maps are useful for showing the distribution of data points across a geographic area.
Point data relies on longitude (runs from -180 to 180) and latitude (runs from -90 to 90). Longitude runs from west to east, while latitude runs from south to north. These can be in a dataset, or calculated by Tableau.
A fill map connects multiple data attributes to visual properties such as color, size, and shape. However, recognize that too many attributes can clutter the map.
Creating a Point Map:
You can combine a fill map and point map using dual axis. This allows you to show both area-based data and point-based data on the same map.
Process:
You can customize the map layers and colors in Tableau to enhance the visual appeal and clarity of your maps.
Set a color scheme:
Add a background layer:
Add or remove roads:
In Tableau, geographic data types are special data types that represent geographic locations, such as countries, states, cities, or postal codes. When you assign a geographic role to a field, Tableau automatically generates the corresponding longitude and latitude values for those locations.
Generated longitude and latitude fields are created by Tableau when you use geographic data types. These fields are used to plot the locations on a map. You can also create your own longitude and latitude fields if you have specific coordinates in your dataset.
When working with maps in Tableau, it’s important to understand the difference between using geographic data types and manually created longitude/latitude fields. Geographic data types allow for easier mapping and automatic recognition of locations, while manually created fields provide more control over the exact coordinates used.
When creating maps, it’s important to be aware of geographic distortion and projections. Different map projections can distort the size, shape, and distance of geographic features. Some common map projections include the Mercator projection, which preserves angles but distorts size, and the Robinson projection, which balances size and shape distortion.
When choosing a map projection, consider the purpose of your map and the geographic area you are representing. Some projections are better suited for certain regions or types of data.
Unfortunately, Tableau does not currently allow users to select different map projections. However, being aware of the limitations and potential distortions in the default projection can help you make informed decisions about how to present your geographic data effectively.
Example of distortion: Greenland appears much larger than it actually is compared to Africa on a Mercator projection map.
