1Four measurement scales
Chapter 1 classified data by what it holds. This classifies it by what arithmetic is legal, which is the distinction that stops you drawing false conclusions.
How the eye decodes a graph
Cleveland's three operations, performed automatically every time somebody looks at a chart.
Detection
Find the geometric object carrying the quantity. Bar length is the quantity. Pie area is the share.
Assembly
Group the marks and find structure, for example following an ordered set of bars as a trend.
Estimation
Judge magnitude and difference. "This is roughly five times that."
The encoding effectiveness ranking
This is the core of Chapter 4. Visual channels ranked by how accurately people read them.
| # | Encoding | Discriminate | Rank | Estimate |
|---|---|---|---|---|
| 1 | Position on a common aligned scale | Yes | Yes | Yes |
| 2 | Position on identical but non-aligned scales | Yes | Yes | Yes |
| 3 | Length | Yes | Yes | Yes |
| 4 | Angle / slope | Yes | Yes | Partly, needs a derived metric |
| 5 | Volume / density / saturation | Yes | Partly | Weakly |
| 6 | Colour | Yes | Barely | No |
- Colour separates categories and stops there. You can say which is highest and lowest, but never by how much.
- Volume beats colour. Bubble sizes rank reasonably, but comparing circle areas by eye is imprecise, so you end up saying "slightly more" instead of giving a number.
- Angle shows direction of change well. For rate of change, plot the rate itself rather than asking the audience to judge slopes.
- Length does all three, which is why the humble bar chart is so hard to beat.
- Position on a common scale is the most accurate channel available, because the eye measures distance against one shared axis directly.
Test yourself on the ranking
The practical limit on colour
Expressiveness and effectiveness
Expressiveness
Does it show all the facts in the data, and nothing the data does not contain?
Effectiveness
Is it perceived as easily as it possibly could be? The working definition: information is presented effectively if you cannot improve it further.
A chart can be fully expressive and still ineffective. A saturated colour map contains every value and lets you estimate none of them, which is exactly the case the ranking predicts.
Structured data: choosing the chart
| Analysis | Purpose | Charts |
|---|---|---|
| Univariate, counts | One variable | Bar chart, big number, pie or donut |
| Univariate, distribution | Spread and outliers | Histogram, boxplot |
| Multivariate, comparison | Groups against each other | Stacked bar, box chart |
| Multivariate, relationships | Do variables move together | Scatter, heat map, parallel coordinates |
| Multivariate, trends | Change over time | Line chart, dual-axis chart |
Big number is the one addition worth noting: a single figure set large is a legitimate chart type when one number is the finding. Boxplot construction is repeated here, and correlation against causation is restated, because the course returns to both repeatedly.
Unstructured data: the pre-processing pipeline
Structured data is a matrix with defined variables. Text has no structure, so it must be converted into something computable before any chart is possible.
Charts for text
| Chart | Shows |
|---|---|
| Word cloud | Frequency as font size. The fastest way to see dominant terms |
| Frequency bar chart | The same counts, but readable as numbers |
| Word tree | Branches from a root node to show which words follow which, revealing relationships between entities |
| Sentiment score | Tone of a passage: positive, neutral or negative |
| Joint plot | Polarity against subjectivity, with both distributions on the axes |
Polarity and subjectivity
−1 to +1
How negative or positive the text is.
0 to 1
How much opinion and emotion it carries, against fact. "I feel hungry" is subjective, "I earn a salary" is objective.
Analysing conversations
Five questions define any conversation, and each maps to a visual: when it happened, who was involved, from whom to whom, how dense the network is, and what was said.
Finding topics
| Technique | What it does |
|---|---|
| Word embedding | Groups words used in similar linguistic contexts. The classic relation is king to man as queen is to woman |
| Topic modelling | Unsupervised learning, using LDA (latent Dirichlet allocation) or LSA (latent semantic analysis), that splits documents into a chosen number of topics |
| t-SNE clustering | t-distributed stochastic neighbour embedding. Reduces high-dimensional text to a plottable space |
Key points
- Four measurement scales with the operations each permits.
- Why 50 °C is not twice as hot as 25 °C, and what a true zero has to do with it.
- Cleveland's three visual operations: detection, assembly, estimation.
- The encoding effectiveness ranking, in order, from position on a common scale down to colour.
- The three audience functions: discriminate, rank, estimate, and which encodings support which.
- Why colour cannot support estimation, and the six-colour limit.
- When to plot rate of change instead of asking the audience to judge slopes.
- Expressiveness against effectiveness, and the "cannot improve it further" test.
- The seven-step text pre-processing pipeline in order.
- Stemming against lemmatisation, with an example where stemming fails.
- Why a word cloud needs a frequency bar chart beside it.
- Polarity and subjectivity, their ranges, and why aggregate sentiment can mislead.
- The five aspects of a conversation.
- Word embedding, topic modelling with LDA or LSA, and t-SNE, and what each contributes.