Difference Between Tree map and Heat map
Updated on 02nd Jul, 21 63 Views

Imagine you have a data set containing the geographical attributes and you want to analyze your data geographically, then plotting your data on a map in Tableau is the best way for you to visualize the data. In this blog, the topics we are going to discuss are.

Maps in Tableau

Maps in tableau are used for geographical analysis of data. Map visualizations are mostly used to answer spatial questions. The instant geocoding in Tableau allows it to automatically turn the location data and all other information to interactive maps with 16 levels of zoom. One can also use custom geocodes to map the information that is required for the task. There are different variations in the Maps that can be used to represent or analyze different kinds of data.

“Tableau is revolutionizing data analysis and has truly made geographic analysis accessible to everyone.” – BARB WENNINGER, VICE PRESIDENT OF SALES AND MARKETING, ADCI.

Are you new to the concepts of Tableau? Get started with Tableau tutorial for beginners and become a certified professional.

How to Create Maps in Tableau

The datastore used in this example to create a Map is the Sample-Superstore which is built in Tableau.

  • Drag and drop the measures “Latitude” and “Longitude” into the row and column shelves.
  • In the “Marks” card, change the drop down option to “map”.
  • The location “state” and place it in the colors and label field of the “marks” card. The following is the simple Map visualization that is created by following above steps.
Simple Map

Different Types of Maps in Tableau

The following are the common map types that can be created in Tableau.

1. Proportional symbol maps

2. Choropleth maps(filled maps)

3. Point distribution maps

4. Heatmaps(density maps)

5. Flow maps(path maps)

6. Spider maps(origin-destination maps)

7. Tree maps

All the maps mentioned above have their own definitions and applications. But, Heatmap and Tree map are two maps which confuse the learner initially. So, before discussing the implementation let’s study a little about the difference between Heatmap and Tree map.

Difference Between Heatmap and Treemap in Tableau

From a definitive perspective we have different types of maps as mentioned above in Tableau. But, in a comparison perspective, what are the differences between Heatmap and Tree map in Tableau?

A two-dimensional representation of information with the help of colors is known as Heatmap. These maps are used to visualize both simple and complex data. Heatmaps are frequently used in analysing the patterns of consumer purchase. In a nutshell Heat Maps are used to study consumer behaviour. In case of a website, distinct colors can describe the frequent and infrequent clicks on the website. Heatmaps can also be used in different activities like understanding election results in a region, the intensity of storms in a region, etc.…

If you have a large amount of highly structured data, then the best option for visualization is a Treemap. The space in the visualization is split up into rectangles sized and ordered according to the quantitative measures. The levels in the hierarchy are displayed as nested rectangles. A column or an expression is represented by the rectangles on the same level in Treemap. The category of each column is represented by each rectangle in the level. For example, if each rectangle represents countries, then the rectangles nested within them represent states and cities respectively.

Now that we are familiar with the differences between Treemap and Heatmap, let’s get into the implementation of different maps in Tableau.

How to Create a Proportional Symbol Map in Tableau

Proportional Symbol Maps are the best way to show quantitative data for individual locations. For instance, in the example of a superstore data set, if we want to find out which state is having the highest number of sales and profit, then by using a proportional symbol map we can plot the details in an accurate and interactive manner. The steps to be followed to create the said map is as follows.

1. Place Latitude and Longitude measures in the Row and Column fields respectively.

2. In the “marks” card, select automatic.

3. Drag the location “state” and “region” to the details field, then drag sales and profit measures to size and color fields. From the graph thus created we would be able to visualize and analyze which city is having highest sales and profit.

Proportional Symbol Map

Click on Tableau Applications to know about Tableau and its applications.

How to Create Choropleth Maps in Tableau

Choropleth Maps are also known as filled maps in Tableau. These maps are great for showing ratio data. For example, if you want to see literacy rates for every country across the world, you might consider creating this map to see if there can be any spatial pattern. To create this graph, a dataset of Literacy rate from UNICEF website has been taken. After uploading the data, the following steps should be done in order to create the said map.

1. Place Latitude and Longitude in the row and column shelves.

2. On the right side of the screen, click on “show me” and select the map option.

3. Drag the country to the details field and literacy rate to the color field in the “marks” card.

4. Click on “tool kit” and type “%” next to the literacy rate statement to display the percentage when a cursor hovers over a particular country.

5. For the colors, click on the color field and select “edit colors”, change automatic to “Red-Green Diverging”. This displays low literacy rated countries in red and rest in the shades of green. The following is the choropleth graph thus formed.

Choropleth map

How to Create Point Distribution Maps in Tableau

Point Distribution Maps are used when one wants to show approximate locations and are looking for visual clusters of data. These maps work best if we want to show how locations of our data points are distributed. For this example the data set used is Hailstorm data. Steps to be followed to create a Point Distribution Maps in Tableau are:

1. After the data source is connected to the Tableau, place the Longitude and Latitude measures in the “row” and “column” shelves.

2. Both the latitude and longitude should be set to continuous and dimension in their respective shelves.

3. Set the mark to automatic and select the map from the “show me” card on the right side of the screen. The following is the Point distribution Map for the Hail data source.

point distribution map

How to Create Heat Maps in Tableau

Heat Maps are also known as density maps. They can be used when you want to show a pattern for visual clusters of data. For example, if you want to find out which areas of Texas have the highest sales, you can create a Heat map to see which areas are most popular for sales. A Heat Map can be created as follows.

1. For example, we are using the hail storm data set. After connecting the data source to the tableau, place latitude and longitude in the row and column fields.

2. Set the latitude and longitude to continuous and dimension by right clicking them.

3. Select the mark type as “density”.

4. The created heat map thus shows the intensity of the hail storm in the region.

heat map

Become a Business Intelligence Architect

How to Create Flow Maps in Tableau

Flow Maps also known as Path maps are used to connect paths across a map to see where something is going over time. For instance, you can track the paths of cyclone storms across the country or world over a period of time.

1. The data source that is used in this is about Train stations.

2. The latitude and longitude should be placed in row and column shelves and set to dimension and continuous

3. The orderId measure should be placed in the details field of the marks card.

4. Select the mark type as “Line”.

5. The map thus created helps us visualize various paths between various railway stations.

path map 1
path map 2

How to Create Spider Maps in Tableau

Origin-destination maps is another name for Spider Maps. Spider Maps are used to show how an origin place and destination places interact. For instance, you can track car rides from an origin to one or more destinations. The below are the steps to create Spider Maps in Tableau.

1. The data set used in this is “Train stations”. Set the mark type to Line.

2. After connecting the data source to tableau, place Latitude and longitude in the row and column shelves, and set them to dimension and continuous.

3. Duplicate the longitude in the column field and change the mark type of last card to circle.

4. For the size field measure values are used and for color field station color is used.

5. The following is the Spider Maps in Tableau.

spider map

Master Data Visualization Using Tableau

How to Create a Treemap in Tableau

Treemaps are used to display data in nested rectangles. Dimensions can be used to define the structure of the Treemap and measures can be used to define size and color of each rectangle. These are relatively simple data visualizations that provide attractive and effective insight on the data.

1. In this example, the data source used is the sample superstore data.

2. Set the mark type to automatic and drag and drop sales to the size field, profit to the colors field and sub-category to the label field.

3. Below is the Treemap that is created by following the above steps.

Tree map

Maps are a very important feature in Tableau to analyze and visualize geographic data. Learning about them helps a lot in achieving effective, attractive and accurate data visualization. Hope this article has shed some light on how to create some of the common variations of Maps in Tableau.

Check out our Business Intelligence Community for more information about Tableau.

Course Schedule

Name Date
Power BI Training 2021-07-31 2021-08-01
(Sat-Sun) Weekend batch
View Details
Power BI Training 2021-08-07 2021-08-08
(Sat-Sun) Weekend batch
View Details
Power BI Training 2021-08-14 2021-08-15
(Sat-Sun) Weekend batch
View Details

Leave a Reply

Your email address will not be published. Required fields are marked *

Let’s Talk

Get Free Consultation

Related Articles

Associated Courses

Subscribe to our newsletter

Signup for our weekly newsletter to get the latest news, updates and amazing offers delivered directly in your inbox.