1/16/2018 Lecture Notes: Welcome to Dataviz!
January 11, 2018
Tues 1/16/2018 Class: Welcome!
Welcome! An Introduction to using data visualization to tell stories.
- Before next class, please register for the class blog (follow instructions from an email the system sent you) and fill out this survey.
- Walkthrough of the syllabus and schedule.
- Please read through this presentation about the class on your own.
- Let’s look at a few more dataviz examples.
- And how about some really bad examples.
Class Blog, Twitter hashtag
Most of the assignments will be filed by embedding widget code into the class blog at http://journovationsu.org. And you have an account! Walkthrough of how it works.
Exercise: And now for a little magic. Introduce yourself through data!
- Open this URL. How did that data get in there? Let’s find out together.
- Google yourself and find an image that is publicly available on the web. Right-click the image and get the URL.
- Go to this Google spreadsheet and fill out your info. Put your image URL into the correct column, and put this code around it:
<img src=”YOURURLHERE” width=”200″ />
(Note: type this in, don’t copy and paste from this page).
- Take a look at this URL or the home page to see class data populating in real time.
Congrats! You Participated in a Data Visualization
We will go through some basic features of Excel, and formulas.
- Adding information as data
- Add a formula
- Columns and rows.
- Formula: using the equal sign for functions. Basic math.
- Sum columns or rows.
- Select an area.
- Format cells to change cell type (text, number).
- Making charts in Excel.
- Common formulas: adding, subtracting, dividing, multiplying, summing.
- CSV format versus native Excel format.
Putting it into practice: Sorting and filtering NYS bridge data
- Bridges across the country are badly in need of repair, and it can literally be a life or death issue. Here’s more about that.
- Download and unzip this data set of 51,000 bridges in New York State. bridges_blanksremoved.csv
- Open it in Excel. Scroll right until you find the column “critfrac” which stands for critical fracture. A y12 or y24 means outdated design, so a single solid hit can bring the entire bridge down.
- Scroll right until you find the column “critfrac” (column DL) which stands for critical fracture. A y12 or y24 means outdated design, so a single solid hit can bring the entire bridge down.
- Next, find the column “suffrtno” in column FC, which stands for Sufficiency Rating. Anything under 50 is considered dangerous.
- Also note the “totlcost” (total cost to fix in thousands of dollars) in column DV, and “avdayno” (average daily traffic) in column AK.
- How many bridges are in danger of collapsing due to critical fracture?
- How many bridges have an inadequate sufficiency rating?
- How many have both bad critical fracture and sufficiency rating numbers?
- How much traffic goes over the bridges with both bad critfrac and suffrtno ratings?
- How much will it cost to fix the bridges with both bad critfrac and suffrtno ratings?Go through this yourself, then let’s review the answers and how to get them.
Before next class:
- Fill out class survey.
- Review this tip sheet on Excel.