Docsity

Creating Chloropleth and Proportional Symbol Maps for Survey Data in Tableau III - Prof. M, Assignments of Information Technology

Toggle sidebar
bg1
Tableau III Maps Lab (Assignment 5) Notes
The instructions for this lab were fairly complex. Students who did not complete the
assignment in lab may therefore run into difficulties. Here’s my best effort to help
remotely.
First, you are allowed to work in pairs for this assignment. Two heads may be
better than one. If you work in larger groups to get the maps to work, create
separate visualization sheets and Tableau workbooks for each pair to turn in. State
the members of your pair.
Here is a link to the files for this lab:http://courses.washington.edu/info424/mapLab/
For both map types, the Tableau workbook Election maps.twb provides an important
example. To use this workbook, you will need to specify your stored file location of
Election.xls (twice) and possibly also the image file us-125-66+25+50.png.
The Excel file Election.xls contains three sheets:
a. States is data to create a chloropleth map of most of the US. It contains the long, lat
vertices of about 50 polygons for the states in the contiguous 48 states (for example,
Michigan (MI) has two separate polygons), keyed by state abbreviation.
b. Location is data for use with a background map such as us-125-66+25+50.png, again
keyed by state abbreviation. It contains the long, lat values of a suitable point inside each
state boundary for the placement of a proportional symbol and label. The values in
yellow have been hand-edited to improve their location. A few states, such as Maine
(ME) should still have improvements of this kind made if you want to use this map in
your project.
c. Election is election data from the 2000 US presidential election and some other state
information, again keyed by state abbreviation.
The Tableau workbook Election maps.twb contains two sheets:
a. Sheet 1 contains a chloropleth map of the US showing popular vote differential by
state for Gore (blueish hues) and Bush (reddish hues). To see how it is constructed, use
Reset Cards in the View menu in the toolbar. The Marks: Polygon and Level of
Detail: PolygonID fields are crucial, as well as the Longitude and Latitude fields on the
Column and Row shelves. The coloring for the map is based on a calculated field called
difference. You will change the contents of the Color shelf to make your chloropleth
map.
Notice also that Sheet 1 uses TWO of the sheets from the Excel file, Election and
States, so Dimensions from both of those sheets appear in the Data area. It uses the
States sheet to draw the polygons and the Election sheet to provide the data to color it.
pf3

Partial preview of the text

Download Creating Chloropleth and Proportional Symbol Maps for Survey Data in Tableau III - Prof. M and more Assignments Information Technology in PDF only on Docsity!

Tableau III Maps Lab (Assignment 5) Notes

The instructions for this lab were fairly complex. Students who did not complete the assignment in lab may therefore run into difficulties. Here’s my best effort to help remotely. First, you are allowed to work in pairs for this assignment. Two heads may be better than one. If you work in larger groups to get the maps to work, create separate visualization sheets and Tableau workbooks for each pair to turn in. State the members of your pair. Here is a link to the files for this lab:http://courses.washington.edu/info424/mapLab/ For both map types, the Tableau workbook Election maps.twb provides an important example. To use this workbook, you will need to specify your stored file location of Election.xls (twice) and possibly also the image file us-125-66+25+50.png. The Excel file Election.xls contains three sheets: a. States is data to create a chloropleth map of most of the US. It contains the long, lat vertices of about 50 polygons for the states in the contiguous 48 states (for example, Michigan (MI) has two separate polygons), keyed by state abbreviation. b. Location is data for use with a background map such as us-125-66+25+50.png , again keyed by state abbreviation. It contains the long, lat values of a suitable point inside each state boundary for the placement of a proportional symbol and label. The values in yellow have been hand-edited to improve their location. A few states, such as Maine (ME) should still have improvements of this kind made if you want to use this map in your project. c. Election is election data from the 2000 US presidential election and some other state information, again keyed by state abbreviation. The Tableau workbook Election maps.twb contains two sheets: a. Sheet 1 contains a chloropleth map of the US showing popular vote differential by state for Gore (blueish hues) and Bush (reddish hues). To see how it is constructed, use Reset Cards in the View menu in the toolbar. The Marks: Polygon and Level of Detail: PolygonID fields are crucial, as well as the Longitude and Latitude fields on the Column and Row shelves. The coloring for the map is based on a calculated field called difference. You will change the contents of the Color shelf to make your chloropleth map. Notice also that Sheet 1 uses TWO of the sheets from the Excel file, Election and States , so Dimensions from both of those sheets appear in the Data area. It uses the States sheet to draw the polygons and the Election sheet to provide the data to color it.

You can add another sheet (Table) to a Tableau sheet by right-clicking on the name of a sheet (Table) that you are already connected to and selecting the Tables… menu item. This brings up a dialog box to add another table, which is done by joining multiple sheets (Tables) together. You can also use the dialog box to view the current setting for this Table by selecting Edit… The State abbreviation field in each sheet is used to join these sheets. b. Sheet 2 contains a proportional symbol map version of the same data. The Marks: Circle , the Text: State fields, and the Location_x and Location_y fields on the Column and Row shelves specify placement of the marks on the map. The background map itself is the file us-125-66+25+50.png. Note that in this sheet both color and size show the data. The calculated field absdiff creates the absolute value of the difference so that the size will not be negative for Bush votes. Sheet 2 again uses TWO sheets from the Excel file, this time Election and Location. Now for completing Assignment 5, Tableau Maps Lab (see the course Schedule page). To use the chloropleth map for our survey data in problem 2, you must create a new Excel file like the Election.xls file, except that it will contain our survey data as a Survey sheet instead of the Election sheet. You might as well do that at this point so that you can put everything together neatly in one Tableau workbook.

  1. Survey data proportional symbol map For this map, you need a background map of UW locations of our class members. I constructed a map called UW area 7.png by stitching several Google maps together with a Python program. NOTE: You NEED NOT create this map because I have already done so for you. In fact, I created several at different zoom levels, so you can use either UW area 6.png or UW area 7.png , as you choose. The zoom level 7 one is smaller, but shows the contents at slightly lower detail. The Python program is called mapgen.py , and the files Maps notes.doc and Google map stitching for Tableau.doc tell you how to use it. I included these instructions only for those groups who may wish to create a map of some region for their project. It is not necessary for the lab assignment. Survey data background map UW area 7.png Long, lat coordinates to enter in Tableau: left = -122.695313 right = -121.993561 (longitude) bottom = 47.280161 top = 47.989922 (latitude) The file UW area map key.txt has long, lat coordinates for all of the maps. Use the left=, right=, top=, bottom= values below each map name.