Skip to content

Plot differences and residuals directly

badassociationsjudgmentCleveland 1994 p. 230Cleveland 1994 p. 129Few 2012 p. 276Few 2012 p. 20Few 2012 p. 27Munzner 2014 p. 272Miller 2013 p. 113Aigner 2023 p. 364Aigner 2023 p. 150Aigner 2023 p. 299

Did the per-capita income gap between the United States and Canada narrow or widen after 1977?

Plotly Express Gapminder dataset, United States and Canada GDP per capita (constant international dollars), 1952 to 2007.

“Judging vertical distances between two steep curves is systematically biased because the eye measures the shortest perpendicular distance instead”

William S. Cleveland, "The Elements of Graphing Data", revised edition, p. 227.

Also covered in Cleveland 1994 (4.2 Judging Vertical Distances, p. 230), Cleveland 1994 (3.2 Residuals and Tukey Mean-Difference Plots, p. 129), Few 2012 (12 SILLY GRAPHS THAT ARE BEST FORSAKEN, p. 276), Few 2012 (2 SIMPLE STATISTICS TO GET YOU STARTED, p. 20), Few 2012 (2 SIMPLE STATISTICS TO GET YOU STARTED, p. 27), Munzner 2014 (12 Facet into Multiple Views, p. 272), Miller 2013 (6 Creating Effective Charts, p. 113), Aigner 2023 (Appendix A Survey of Visualization Techniques, p. 364), Aigner 2023 (5 Involving the Human via Interaction, p. 150), Aigner 2023 (Appendix A Survey of Visualization Techniques, p. 299).

CVD preview

Before

Two steeply rising lines force readers to subtract vertical heights mentally, making the gap look nearly constant over five decades.

Download before Python code

After

Plotting the US-minus-Canada difference directly exposes the 1972 to 1982 dip to 2,000 USD followed by a rapid widening to 6,632 USD.

Download after Python code

Values

Both economies grew steeply from roughly 11,000 to 14,000 USD in 1952 to over 36,000 USD in 2007.

The gap narrowed from 2,623 USD in 1952 to 2,120 USD in 1982, then tripled to 6,632 USD by 2007.

Values used in both charts
YearUnited States (constant USD)Canada (constant USD)Gap: US minus Canada (constant USD)
195213990113672623
195714847124902357
196216173134622711
196719530160773454
197221806189712835
197724073220911982
198225010228992111
198729884266273258
199232004263435661
199735767289556813
200239097333295768
200742952363196632