Mapping 4 - Install QGIS - Part 1 - Part 2 - Part 3
This exercise involves a mapping process commonly used by professional cartographers. As such, you’ll use data in new ways—be patient! By engaging more deeply with data, you’ll start to understand the moving parts of making digital maps that are often hidden from their users.
In particular, this assignment will introduce data preparation in Microsoft Excel and visualization in QGIS, a free and open-source software (FOSS). The 3-part assignment will be completed over the three labs. In Week 6, you imported county geometry. In Week 7, you will download tabular data from the US Census and use Excel to clean the data. In Week 8, you will join the tabular data to the county geometry and produce choropleth maps similar to those produced by Social Explorer in Mapping 3. Take these timelines seriously, otherwise you’ll have trouble completing the assignment.
Due: Consult the syllabus schedule for the due date of this assignment.
Note: You must come to lab week 6 with QGIS installed.
Be conscious of saving and storing your data, either on a thumbdrive, space you know is secure on the UK drive, on cloud storage, or your laptop. It is your responsibility to save your data securely.
The assignment is worth 50 points. Grading will be based on a Word document that you will upload to Canvas. This document should include:
Note: Tips for Working with Excel are listed after Step 10. I recommend reading them before getting started, but don’t get hung up on them if they don’t help you; they’re optional. Do, however, save your work as you go along, and consider bringing a thumb drive to section.
Go to http://data.census.gov. Click on Advanced Search.
Once the advanced search interface appears, click on Geography along the left side of your screen.
Under GEOGRAPHY choose County and then select the state of Kentucky. Check All counties in Kentucky. You’ve now specified that you’re interested in county geographies, specifically those within the state of Kentucky.
Click on Years and choose 2010. Now click on Surveys and scroll down to choose DEC Summary File 1. You’ve now added to your filter that you are interested in the decennial census data from 2010. As you know, the Census is decennial meaning every ten years. Finally, click SEARCH.
A list of tables on the left side of the screen will display. We are looking for specific information about households by single parents, so type “Household Type” in the Search bar. You’ll need to continue to click the “Load More” button until you arrive at a table with only the title “Household Type”, with the table number “P18”. (You may also simply search for “P18” to find this table.) Click on HOUSEHOLD TYPE.
You now need to download the data. To do so, click the Download button. You’ll then need to re-check HOUSEHOLD TYPE as the table to be downloaded. Then, click Download Selected (1). It should be located at the top of the list of tables to the left. If you do not see it, scroll up to find it.
Confirm that CSV is selected and click DOWNLOAD. After a short time, click Download Now.
You now need to clean the data you’ve downloaded. Find the .zip file that you just downloaded and extract it. If you’re using a PC: right-click the file and selecting “Extract All.” The default settings should work fine. If you’re using a Mac: double-clicking the .zip file will automatically extract it.
Open DECENNIALSF12010.P18_data_with_overlays_2020-09-24T100627.csv in Microsoft Excel.
Save your work as new CSV file called: YourLastName_M4Data.CSV (e.g.“Wilson_M4Data.CSV”). If you are using Mac OS, you must select Windows-compatible CSV from the drop-down menu below the prompt where you’ve entered the filename. Save this file in a place where you can easily access it. You may want to email it to yourself or save it to a USB thumb drive.
We’re only interested in some of the attributes (the columns of data). In particular, we’re looking for data on each county’s total population, single fathers, and single mothers. We also need the GEO_ID and the county name.
To make this data easier to work with in Excel, delete the other attributes in the spreadsheet. (Keeping or deleting attributes in the Excel chart will not affect our map, just our efficiency and peace of mind in Excel). Deleting a column is like deleting a row (see step 9): right-click the letter above the column and select “delete.”
Tip 1: You can click and drag to highlight multiple columns for deletion at once. You can also use the “find” function (CTRL+F on PC, command+F on Mac) to find the columns you’re interested in more quickly.
Tip 2: You can also format the top row with the names to make them easier to find by selecting that row, clicking “Format Cells” then under the “Alignment” tab in the dialogue box that comes up, check the box next to “Wrap Text.” It will then look like the image below:
Tip 3: You can also use the “find” function in Excel to find these columns: copy the column names listed above in step 11 and paste them into the “find” box. Make sure that no rows or columns are selected before you search, or it will only search in that row/column. Alternately, highlight the entire chart first.
Tip 4: Once you find the columns you are keeping, you might fill them in with a color to make sure you don’t accidentally delete them.
Tip 5: Save your work as you go!
Rename the remaining five attributes “GEOID,” “LABEL,” “TOTPOP,” “SINGDADS,” and “SINGMOMS.”.
Remove all formatting from the file by selecting every cell in the spreadsheet (CTRL-A on PC, Command+A on Mac), clicking the Home tab up top, and using the clear button (represented by an eraser) to Clear formats. You won’t see any changes, but this makes the data more readable by QGIS.
Format the attribute you’ve renamed “GEOID” as a text field – to do so, right click the GEOID column, select “Format Cells,” and select “Text.” Click OK.
Format the “TOTPOP,” “SINGDADS,” and “SINGMOMS,” attributes as number fields – to do so, select and right-click all the appropriate columns, select “Format Cells,” and select “Number.” You can leave the default setting; click OK. Save your work!
Respond to each of the following questions. Make sure you provide evidence for your claims where necessary, about 2 sentences per question.
Mapping 4 - Install QGIS - Part 1 - Part 2 - Part 3