Chapter Contents |
Previous |
Next |
Exploring Data in Two Dimensions |
Line plots are often used to show trends over time. For example, you can explore the patterns in pollutant concentrations in the AIR data set by following these steps.
Open the AIR data set. |
This data set contains measurements of air quality
as indicated by concentrations of various pollutants.
Among the pollutants are carbon monoxide (CO),
ozone (O3), sulfur dioxide (SO2), nitrogen oxide (NO),
and DUST.
Choose Analyze:Line Plot ( Y X ). |
This displays the line plot variables dialog.
Figure 5.19: Creating a Line Plot
Assign CO and SO2 the Y role, and DATETIME the X role. |
Assign DATETIME the Label role also. Then click OK. |
This creates a line plot with one line for each Y variable.
To associate lines with variables, simply select the variable.
Click on the SO2 variable. |
This highlights both the variable and the corresponding line.
By clicking on the variables, you can see that the SO2 concentration rises to a peak on the 17th of November and then falls. The CO concentration shows a regular pattern of peaks and valleys up until the 16th; then it falls also.
To show more information, you can add observation markers to the line plot.
Click on the menu button in the lower left corner of the plot. Choose Observations. |
Figure 5.23: Line Plot Pop-up Menu
This displays the line plot with observation markers.
Point and click to identify observations with the highest pollutant concentrations. |
Most of the peaks for CO occur in the morning and evening, around hours 08:00 or 18:00. Carbon monoxide pollution is often caused by automobiles, so these peaks might be caused by rush-hour traffic.
The SO2 concentration follows a different pattern. Sulfur dioxide is a pollutant given off by power plants. Perhaps there was a peak demand for electricity on the 17th.
The drop in pollutants after the 17th can be partly explained by noting that the 18th and 19th were Saturday and Sunday. The weekend eliminates rush-hour traffic patterns. However, the CO level dropped on the 16th also, which was Thursday. There is an additional factor at work here.
Choose Edit:Windows:Renew to re-create the line plot. |
Add WIND to the Y variable list. Then click OK. |
In the line plot, click on the WIND variable. |
Not only were the 18th and 19th a weekend, but there were high winds on the 16th, 17th, 18th, and 19th. These winds cleared much of the pollutants from the local atmosphere.
Related Reading | Mosaic Plots, Chapter 33. |
Related Reading | Scatter Plots, Chapter 35. |
Related Reading | Line Plots, Chapter 34. |
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.