What Is The Story You Are Trying To Tell?
2026-11-25
A data set is nothing more than a series of rows and columns that contain answers to responses to a survey.
| person | Q1 | Q2 | Q3 |
|---|---|---|---|
| 1 | 1 | 0 | 100 |
| 2 | 2 | 0 | 200 |
| 3 | 1 | 1 | -9 |
Once we have discerned the type of variable that we have, there are some follow-up questions that we should ask before deciding upon a chart strategy. These questions have to do with the number of dimensions of our data that we are trying to visualize. Usually, we are trying to visualize only 1 or 2 dimensions of the data:
This example uses simulated data on social work clients, of the kind that a social service agency might collect.
| age | mental_health | group | neighborhood |
|---|---|---|---|
| 38.3 | 88.97 | Group A | Neighborhood B |
| 40.98 | 125.2 | Group A | Neighborhood B |
| 23.79 | 105.1 | Group A | Neighborhood A |
We start by visualizing one indicator at a time.
Sometimes the most interesting visualizations, are visualizations that give us a sense of the maximum, minimum, and average values. For example, the histogram and dotplot display information on age.
We would use a slightly different visualization, for example, a barchart, when our data are grouped into categories.
Our task becomes somewhat more complicated when we want to understand the relationship of one thing to another thing.
Here, for example, we visualize two categorical variables, neighborhood, by group. In this graph, the height of the bars represents the count of observations.
Here, we visualize two continuous variables, mental health, by age.
Last, we visualize a continuous variable by a categorical variable, mental health, by group. In this graph, the height of the bars represents the mean score.
Sometimes our task is different. We want to visualize information, but add information on spatial location, using a map.
Note
Visualizations were made with the ggplot2 (Wickham, 2016) graphing library created by Hadley Wickham.