Choosing
Plots
Learn when to use a histogram, boxplot, or bar chart to display biostatistical data clearly and accurately.
Why Visualization Matters
Raw data tables are hard to interpret. A well-chosen plot reveals patterns, outliers, and distributions that summary statistics alone can hide. In biostatistics, the wrong plot can mislead clinicians and researchers.
Two Kinds of Data
Meet the Three Plots
The Histogram: Shape of Data
The Boxplot: Five-Number Summary
The Bar Chart: Counting Categories
The Decision Rule
Histogram vs. Bar Chart
| Histogram | Bar Chart | |
|---|---|---|
| Data type | Numerical (continuous) | Categorical |
| Bars | Touch (no gaps) | Separated by gaps |
| X-axis | Value ranges (bins) | Category labels |
| Bar order | Fixed by numeric scale | Can be rearranged |
| Shows | Distribution shape | Counts per category |
When to Use Each Plot
Step-by-Step Checklist
Example 1: Patient Ages
A clinical trial enrolls 150 participants. You record each patient's age in years and want to see how ages are distributed across the sample.
Example 2: Comparing Drug Groups
A study compares cholesterol levels (mg/dL) across three treatment arms: Placebo, Drug A, and Drug B. You want to compare centers and spreads.
Example 3: Infection Types
A hospital records the type of infection diagnosed in 200 patients during one month: respiratory, urinary, skin, and gastrointestinal. You want to compare how common each type is.
Common Mistakes
Summary Comparison
| Histogram | Boxplot | Bar Chart | |
|---|---|---|---|
| Variable | Numerical | Numerical | Categorical |
| Shows | Distribution shape | Median, IQR, outliers | Counts / proportions |
| Best for | One variable, \(n > 20\) | Comparing \(\ge 2\) groups | Category frequencies |
| Bars touch? | Yes | N/A | No (gaps) |
| Outlier detection | Indirect | Explicit | N/A |
Question 1 of 5
A researcher records the weight (kg) of 80 newborns and wants to see if the data is normally distributed. Which plot should she use?
Question 2 of 5
A hospital wants to compare length of stay (days) between the ICU, surgical ward, and general ward. Which plot is most appropriate?
Question 3 of 5
Which of the following is a key visual difference between a histogram and a bar chart?
Question 4 of 5
A survey asks 500 people which COVID-19 vaccine brand they received (Pfizer, Moderna, J&J, or AstraZeneca). You want to show the proportion receiving each. What plot do you choose?
Question 5 of 5
A dataset of fasting glucose (mg/dL) contains one extreme value of 450 mg/dL among 60 patients. Which plot best highlights this outlier?