How to make a stem-and-leaf plot
- Copy the numeric column to plot together with its header.
- Select one data column, and leave the stem unit blank (automatic) or enter one such as 1, 10 or 100.
- Press Draw and check the number of leaves on each line (the distribution shape) and the automatic interpretation.
Worked example with sample data
The sample data are test scores of 30 people. The stem unit was chosen automatically as 10.
'7 | 0223446677899' means scores of 70, 72, 72, 73, 74, 74, 76, 76, 77, 77, 78, 79 and 79. The 70s row is longest with 13 people, followed by 8 in the 60s and 3 each in the 50s, 80s and 90s.
Long in the middle and short at both ends, the shape is judged symmetric around the median of 73.5. Unlike a histogram, the original scores remain readable, so the highest (99) and lowest (51) can be read off directly.
What is a stem-and-leaf plot?
A stem-and-leaf plot splits each value into its leading digits (stem) and the next single digit (leaf), and lists the leaves of each stem on one line. With a stem unit of 10, for example, 76 becomes stem 7, leaf 6.
Turned on its side it looks like a histogram while keeping the original values, which is why it is a classic tool of exploratory data analysis (EDA).
Automatic stem unit
With the stem unit blank, the power of ten (1, 10, 100, 0.1, ...) closest to (max - min) / 10 is used so there are roughly 5-15 stems. The leaf is the remainder divided by the stem unit, times 10, rounded to one digit.
How to read a stem-and-leaf plot
- The line with the most leaves is the interval where the data concentrate most.
- The automatic interpretation calls the distribution 'asymmetric with a long tail' when the skewness exceeds 1, otherwise 'symmetric', and reports the median.
- Leaves piled up on one side indicate skew; a long middle suggests a bell shape.
Frequently asked questions
Does it work with decimals?
Yes. Enter a stem unit such as 0.1 or 1 to split decimal data. Leave it blank to choose one automatically from the range.
How are leaves rounded?
Each leaf is a single digit, so lower digits are rounded. Hover over a leaf to see the original value.
What if I have lots of data?
With hundreds of values the lines get too long, so a histogram is recommended.