Child pages
  • ArcMap - Cartograms Tutorial
Skip to end of metadata
Go to start of metadata
Icon

If you find these tutorials useful and would like to link to them from your own pages,please contact the Drew Spatial Data Center Director, Dr. Catherine Riihimaki via email. You are invited to leave comments or ask questions in any of the Comment areas of each tutorial page.

This tutorial was expanded and adapted from Kerski, J.J.. (2009). Exploring Data Using Cartograms within ArcGIS Desktop.  Redlands, CA: ESRI.  Retrieved October 5, 2009, from ESRI GIS Education Community: http://blogs.esri.com/Info/blogs/gisedcom/archive/2009/10/16/exploring-data-using-cartograms-within-arcgis-desktop.aspx.

What is a Cartogram?

Cartograms are a method of displaying geospatial data as totals, wherein data are displayed with both color and area as a function of their values. Cartograms are analogous to pie charts in which the slices of the pie are geographic regions rather than wedges. The Cartograms tool is a script created for ArcGIS that provides a set of spatial analysis tools not included in the standard ArcGIS software. You can create maps that will provoke reactions and dialog by displaying data as Cartograms.  This tutorial will allow users to make Cartograms using their own data.

CartogramsTutorial.zip

Download Cartograms Tutorial Files

Download the zipped tutorial files at: CartogramsTutorial.zip Be aware that the zipped package is approximately 5MB, so please allow sufficient time and memory space on your computer for download.

  1. A dialog box will appear titled, "Opening CartogramsTutorial.zip." Save the file to your computer's Desktop.
  2. Navigate to the desktop of your computer and unzip the file. To do this, right click on the CartogramsTutorial.zip folder. (click image to enlarge)



  3. Choose Extract All. The Windows Extraction Wizard will appear.
  4. Click Next. Make sure that the field under "Files will be extracted to this directory" points to your computer's desktop. (click image to enlarge)



  5. If it does not point to your computer's Desktop, click the Browse button. The select a destination dialog box will appear.
  6. Choose the Desktop option that appears at the very top of the window in the dialog box. You may need to use the scroll bar on the right hand side of the window to see the Desktop Option. (click image to enlarge)



  7. Click OK.
  8. Once this field points to your computer's Desktop, click Next. Windows will unzip the file and tell you that the extraction is complete.
  9. Click the Finish button.

Install the Cartograms Tool

If you are working on a laptop or a computer in your office, you will need to download and install the ArcScript cartogram tool created by Tom Gross in the ESRI Applications Prototype Lab before beginning this tutorial.  Download the files at

http://arcscripts.esri.com/details.asp?dbid=15638

and follow the installation instructions in the ReadMe file.  Once you’ve installed the software, restart your computer.

Open the USPop2007 Map Project 

ArcMap Icon



  1. Open ArcMap.
  2. Click the An existing map; button.
  3. In the Browse area, highlight Browse for maps…
  4. Click OK.  The Open dialog box should appear.
  5. In the Look In: pull down menu, choose Desktop
  6. Highlight the CartogramsTutorial folder.  Click OK.
  7. Highlight the USPop2007.mxd map project.  Click OK.

Repair the Data Sources for your Map Layers

ArcMap sets file paths to find the data for each of your map layers.  Because you moved the data files from this site to your Desktop, the file paths that ArcMap stored are no longer accurate.  You can easily repair the file paths.  This is something you will need to do each time you want to use a Map Project you’ve copied or moved from one location to another.

Repair Data Source

  1. Right click on the 2007 Population by County map layer.  In the pop-up menu, choose Data → Repair Data Source.  The Data Source dialog box will appear.
  2. In the Look In: menu of the Data Source dialog box, navigate to the CartogramsTutorial folder on the Desktop.   If you do not see a path to the Desktop, you can find it in I:\YourUserName\Desktop
  3. Double click on the CartogramsTutData.mdb personal geodatabase.
  4. Highlight the Counties file and click Add.  The Counties file was renamed to 2007 Population by County in the ArcMap Table of Contents for the Map Project, but retains its original name in the Personal Geodatabase.

The Data Frame should now contain a map of the continental United States, with the 2007 Population by County indicated in an orange color scheme.

Add the Cartograms Tool to ArcToolbox

ArcToolbox Button

  1. Open ArcToolbox by clicking on the ArcToolbox button.
  2. Right click on the white space inside the ArcToolbox menu.  Choose New Toolbox.  A new, unnamed toolbox will appear in the Toolbox menu.  Name it Cartograms.

    ArcToolbox Cartograms Menu
  3. Right click on the title of the new Cartogram toolbox.  Choose Add → Tool.
  4. Check the box next to the Cartograms option.  Click OK.

The Cartogram → Create a cartogram (Gastner-Newman method) tool will appear. 

Use the Cartograms Tool

  1. Open the Cartograms Tool and double click on Create a cartogram.  The Create a cartogram dialog box will appear.
  2. Fill in the values for these fields:
    1. Original Polygon Features – Choose 2007 Population by County
    2. Value Field of the Original Features – Choose POP07_SQMI
    3. Allow the default Output Cartograms Features
    4. Uncheck the box next to Sum the Values for each repeated ID
    5. Scroll down and make sure that the box is checked next to Copy the Original Polygon Features table to the Output Cartogram Features table.

Your dialog box should look like this:
Create Cartogram Dialog Box

3. Click OK.

A Cartogram will be created in the new layer. Cartograms distort map shapes to emphasize specified values from underlying map data. In this case, shape of the U.S. map will be distorted to reflect the population density of each area, since you chose to use the POP07_SQMI value from the attributes of the 2007 Population by Counties Map Layer as your Value Field for analysis. Areas with greater population densities will be larger than those with smaller population densities. This new layer will not be Symbolized – meaning that the color scheme indicating population density has not been transferred from the 2007 Population by County Map Layer.

Symbolize the Counties_Cartogram Layer

  1. Right click on the Counties_Cartogram Map Layer.  Choose Properties.  The Layer Properties dialog box will appear. 
  2. Click the General Tab.  In the Layer name field, type 2007 Population Density Cartogram.  This will rename the Counties_Cartogram Map Layer.  Click Apply.
  3. Click the Symbology tab.  In the Show: menu, choose Quantities → Graduated colors.  Use the default color ramp.
  4. In the Fields area under Value:, choose POP07_SQMI.
  5. Under Classification, click on the Classify button.  The Classification dialog box will appear. 
  6. At the top, left hand side of the Classification dialog box, under Classification, change the number of Classes from 5 to 4.  Click OK.
  7. Back in the Layer Properties →Symbology area, under Color Ramp, click on the Label title and choose Format Labels.

    Symbolize Quantities Value Pulldown Menu and Color Ramp
  8. In the Number Format dialog box under Rounding, change the Number of decimal places to 0.  Click Apply.
  9. Click on the Labels tab.
  10. Check the box next to Label features in this layer
  11. Under Text String in the Label Field, choose the value STATE_NAME from the pull down men.
  12. Click OK.
  13. Turn off the 2007 Population by County layer by un-checking the box next to its title in the Table of Contents.
    The graphic clearly emphasizes the areas of greatest population density in the continental U.S., with the Mid-Atlantic region being the most densely populated.

    Cartogram Output Map