Reading: Section 2.4 on Graphical Presentations
Presenting data is important, and graphs, charts, histograms and other visual presentations are very important. Being able to visualize data helps to focus on what is important: outliers, peaks and valleys, trends of growth or decline, and so forth.
Let's start with a spreadsheet of data about the application of the death penalty in the US. Please download the Excel file and open it in Excel.
On January 1, 2006, The Boston Globe Magazine published a cover story on the occasion of the 1000th execution in the U.S. since the Supreme Court reinstated the death penalty in 1976. The article had a breakdown of that data by state, which is interesting as a dataset. Thanks to Irene Laursen in the Wellesley's Science Library, we have that data, plus additional detail. Take a few minutes to look over the data.
Here are some additional links:
Line graphs are useful when the x-axis is ordered in some way. The most common way for it to be ordered is time. The graphs we've seen in Extend for the amount of money or the number of rabbits or whatever are interesting because of how they change over time, and a Line Graph is a good way of doing this.
Let's graph the number of executions in the U.S. since the reinstatement of the death penalty in 1976. To get started, choose "Insert / Chart" or click on the icon of a bar chart. This starts the "chart wizard," which helps you create a chart in four steps.
Look at the result. Feel free to compare it with the chart under "Chart1" in the tabs below the spreadsheet. Notice:
You should see a little window floating in front of your plot. Some of the things we are interested in changing can be changed there. For example, to change the line color, pull down the menu and choose "Series 1". The little icon next to the pull-down menu brings up a window called "Format Data Series." Alternatively, you can try double-clicking on the line itself. From the Format Data Series window, you can choose different colors and such.
If you double-click the "120" on the y-axis, you can bring up a "Format Axis" window, which has a tab for "scale." Change it to 100.
We'll fix the others by doing them right the first time. (We could also do it after the fact, but I think it's better and easier to see how to get it right the first time.) So we'll re-do our chart. Delete the first one and then:
Pretty cool, hunh? Notice that the X axis is now correct. However, the Y data is more than we want, at least for this graph. Let's fix that.
Examine the result. Looking at the breakdown by the three major regions is worthwhile. This is a good time to consider the other chart sub-types. You can change chart sub-types with "Chart/Chart Type."
Another way to display data is via a bar chart. A bar chart is more appropriate when there isn't necessarily any order to the X axis, or, even if there is, "trends" are not the point. For example, we could look at the row totals, broken down by region or even by state.
Use the chart wizard again.
Then, switch to the "series" tab and choose a "name" cell for each series, namely the data in column A.
Notice that the data from the Department of Justice doesn't include the 2005 data. I added a column to compute the totals through 2005; it's column AE.
Redo the chart, building a bar chart by state. Unfortunately, Excel's desire to guess something useful will work against us. To see, let's try it:
Start over. This time, copy the first two columns (starting at US total) to a blank sheet.
Having the state labels vertical is hard to read. This is a good case for the horizontal orientation.
Consult Flick Coleman's histogram tutorial in Flash.
Note that it's actually not necessary to sort the data; the histogram tool will sort a copy of the data.
Do you agree with summarizing by region?
How would you summarize the data about the 1000 total executions since 1976?
Sheet3 has the data with just the basic 52 regions (50 states, plus DC and Federal).
You could sort the data by state name or by magnitude. Let's try both.
Assume you can report several numbers, not just one. What do you report? Why?
Look at the chart Executions by Year 1608-2000? (It's at the bottom of the page.) What do you think of it? Why?
I'll hand out a copy of the January 30, 2006 Newsweek cover story on boys and girls, which has two charts on the bottom of page 52 that I think are worth trying to re-do. Please do them.
If you want to compare, here is my charts for the boys and girls reading and writing scores
What is the effect of zooming in on the data?
This work is licensed under a Creative Commons
License |
|
|
|