Exploring Data in One Dimension |
In this section you create a histogram of the latitude variable of the Hurricanes data set. The latitude variable gives the latitude of the center of each tropical cyclone observation.
Open the Hurricanes data set. |
Select Graph Histogram from the main menu, as shown in Figure 5.5. |
Figure 5.5: Selecting a Histogram
A dialog box appears as in Figure 5.6.
Select the latitude variable, and click Set X. |
Click OK. |
Note: The histogram also supports an optional frequency variable.
Figure 5.6: The Histogram Dialog Box
A histogram appears (Figure 5.7), showing the distribution of
latitudes for the tropical cyclones in this data set. The histogram
shows that most Atlantic tropical cyclones occur between 10 and 40
degrees north latitude. The data distribution looks bimodal: one mode
near 15 degrees and the other near 30 degrees of latitude.
Figure 5.7: A Histogram
If a variable has missing values, those values are not included in the
histogram.
You can click on a histogram bar to select the observations contained in that bin. You can click while holding down the CTRL key to select observations in multiple bins. You can drag out a selection rectangle to select observations in contiguous bins.
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.