22.4 Bar charts, line plots and histograms — Learn
Prerequisites: frequency tables from Section 22.3.
Objectives: draw and read a bar chart; draw and read a line plot; draw and read a histogram; say when a histogram is the right graph and when a bar chart is.
By the end of this section you can choose the right graph for the data and read the pattern from it.
A picture of the data
A frequency table holds the pattern, but a graph shows it at a glance. Three graphs are used again and again.
Bar charts
A bar chart uses a bar for each value or category. The height of the bar is the frequency. There is a gap between the bars, because the values are separate.
Here is the bar chart of the sleep data. Each bar stands for one number of hours.
| Sleep (hours) | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|
| Bar height (frequency) | 3 | 3 | 4 | 5 | 3 | 2 |
The tallest bar is at 8 hours, with a height of 5. The shortest bars are at 5, 6 and 9 hours, with a height of 3.
Line plots
A line plot is a number line with a mark for each piece of data. You put a cross above the value each time it appears. A line plot is best for a small set of numbers, because you can see every value.
Here is the line plot of the sleep data. The number of crosses above each value is its frequency.
| Sleep (hours) | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|
| Number of crosses | 3 | 3 | 4 | 5 | 3 | 2 |
A line plot and a bar chart show the same frequencies. The line plot keeps every answer visible, which a bar chart does not.
Histograms
A histogram shows grouped data. Each bar covers a class interval, and there is no gap between the bars, because the classes join up. The height of the bar is the frequency when every class has the same width.
Here is the histogram of the homework minutes.
| Minutes | 0 to 19 | 20 to 39 | 40 to 59 | 60 to 79 | 80 to 99 |
|---|---|---|---|---|---|
| Bar height (frequency) | 4 | 9 | 8 | 6 | 3 |
The tallest bar is the class 20 to 39 minutes. The shortest bar is the class 80 to 99 minutes.
Bar chart or histogram?
The two look alike, so the difference is worth stating.
| Graph | Bars | Gap between bars | Data |
|---|---|---|---|
| Bar chart | one bar per value or category | yes | separate values or groups |
| Histogram | one bar per class interval | no | continuous, grouped data |
A bar chart of favourite colours has a gap between each colour, because a colour is not next to another colour on a scale. A histogram of heights has no gaps, because every height belongs to some class.
Reading a graph
To read any graph, do two things first.
- Read the scale on each axis. One square might stand for 2, or for 10.
- Read the height of the bar, then check which value or class it belongs to.
Example 1. Use the sleep bar chart. How many students slept at least 8 hours?
The bars at 8, 9 and 10 have heights 5, 3 and 2.
So 10 students slept at least 8 hours.
Example 2. Use the homework histogram. How many students spent less than 40 minutes on homework?
The classes below 40 are 0 to 19 and 20 to 39, with heights 4 and 9.
So 13 students spent less than 40 minutes.
Investigate the three charts
Predict. Before you move the control, predict whether the bars of a histogram touch each other.
Test. Choose each chart in turn. Watch how the same sleep data is drawn, and read the question each chart answers.
Explain. Write two or three sentences. Say which chart shows every student's answer, and which chart groups the hours. Use the words "gap", "class interval" and "frequency".
Watch out
Progress check
Return to the chapter problem. The sleep data has the frequency table below.
| Sleep (hours) | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|
| Frequency | 3 | 3 | 4 | 5 | 3 | 2 |
- Which value is the tallest bar on a bar chart?
- How many students slept 7 hours or more?
- How many students slept fewer than 7 hours?
- Explain why the sleep data uses a bar chart and not a histogram.
Keep your answers. In Section 22.5 you will find a single typical value for the data.
You should now be able to
- draw a bar chart from a frequency table;
- draw a line plot of a small set of data;
- draw a histogram of grouped data with equal class widths;
- read a bar from a graph by using the scale;
- say when a histogram is the right graph and when a bar chart is.