|
POS 138 Quantitative Reasoning in Political Science |
|
Lab 9: The Boxplot -- Read: JPDA, pp. 74(bottom)-76:
Features:
To add the lines data range:
Alternatives:
About Boxplots: Boxplots, also known as box-and-whisker plots, are a convenient method of displaying the distribution of an interval-level variables.
The simple boxplot, as shown in figure xx, displays the four quartiles of the data, with the "box" comprising the two middle quartiles, separated by the median. The upper and lower quartiles are represented by the single lines extending from the box. A single boxplot box (as in figure xx) rarely reveals much about the data; in most instances stem-and-leaf or histogram charts offer a more detailed graphic representation of the data distribution. The real advantages of the boxplot graphic comes through, however, in charts that use several boxplot boxes to compare the distribution of a variable across groups or over time. An especially useful elaboration of the boxplot graph involves plotting an individual case over the boxplot to compare a single cases to the overall distribution.
Thus figure 1 displays the percentage Democratic vote for the 50 states over the past seven presidential elections. We can see that the Democratic vote in Nevada has moved steadily higher relative to the other states while Georgia has become an increasingly Republican state. One can easily imagine applying the same plotting strategy in a variety of other settings, for example, comparing one school district's test scores to the distribution of test scores across other school districts. Other examples. Examples of boxplots:
|