Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
All of them are dirty liars.
All maps lie. Some lie more than others, and some are deliberately designed to mislead us. Mark Monmonier even wrote a whole book about it: How to Lie with Maps.
Take election maps. Land doesn’t vote. People do. Yet a vast, sparsely populated region can dominate a map, while a densely populated city barely gets noticed. See the same election mapped several ways.
Change the color scale or the class breaks on a choropleth and the same data can tell a very different story. See what changing the class breaks does. For a worked example with municipal income data from Spain, see Cómo (no) mentir con la visualización (in Spanish).
But even the most honest maps lie. Not because someone wants to mislead us, but because there’s no way to flatten the (approximately) spherical Earth without distorting something. A projection can preserve some properties, such as area or local angles, at the expense of others.
Fortunately, we have a lie detector.
Meet Tissot’s indicatrices
Imagine covering the globe with identical small circles. When you flatten the Earth, those circles can change size, shape or both. The area of each resulting shape gives us an idea of how much the projection enlarges or shrinks the area around that location. Its shape reveals whether the projection stretches more in one direction than another. Nicolas Auguste Tissot formalized this idea in his 1881 memoir on map projections, and the resulting ellipses carry his name.
Three ways to handle distortion
Before looking at the results, it’s worth remembering that different projections preserve different properties.
- Conformal. These projections preserve local angles and shapes, so tiny circles stay round even when their size changes. Mercator is useful for navigation because a constant compass bearing follows a straight line. Lambert Conformal Conic is another example, particularly useful for mapping regions in the middle latitudes.
- Equal-area. These projections keep areas in proportion, even when shapes stretch. Equal Earth works well for thematic world maps, where readers may want to compare how much land different regions or categories cover.
- Compromise. These projections balance different kinds of distortion. Both area and shape can change. Robinson and Winkel Tripel are useful for general-purpose world maps and atlases, where the overall view matters.
Dominic Royé discusses these trade-offs in more depth in his practical guide to map projections. For the math behind each projection, John P. Snyder’s Map projections—A working manual remains the classic reference.
Let’s put some maps to the test.
Same circles, different maps
We start with a common grid of 99 points in nine rows and eleven columns, with a circle of 350 km radius at each point. Some projections require us to omit circles outside the area shown. The red shapes reveal what happens to the remaining circles when we change the projection.
Web Mercator
If the circles are still circles, where’s the lie?
Web Mercator comes close to the classic conformal pattern. Compare the middle row with the rows above and below. The circles stay roughly round, but they grow much larger toward high latitudes. That’s how Greenland ends up looking so big.
Equal Earth
Equal Earth is an equal-area projection. What happens to the circles when we preserve area?
The shapes give the game away. The circles flatten toward the top and bottom, but their areas stay roughly the same.
Winkel Tripel
Winkel Tripel is a compromise projection. What happens when we let both shape and area change?
Follow the second row from the top, east across Russia, and watch the ellipses stretch and tilt. Then compare them with the equatorial row to see how their areas change as well.
Twelve ways to flatten the world
Pick a red circle near Greenland and follow it from map to map. Watch how its size and shape change.
The last two views share a center over North Africa. The vertical perspective shows less of the globe because its viewpoint is only 10,000 km above the surface. Both views include a bonus circle at the North Pole.
Each map is scaled independently to fit its panel. Compare circle sizes within each map. You can compare shapes across panels. Some projections, such as Lambert Conformal Conic, are designed for particular regions. Their distortions become more pronounced when you map a much larger area.
The outlines can fool you, too. Compare the two rectangles in the first column. In Web Mercator, the circles stay roughly round and grow toward the poles. In Gall-Peters, their areas stay roughly constant within the panel. They stretch vertically near the equator and flatten at high latitudes.
On the second row, compare Robinson with Lambert Conformal Conic. Lambert keeps the circles nearly round, but they grow sharply toward the southern edge. With the standard parallels used here, the projection stretches toward infinity at the South Pole, so I cropped this panel at 60° S.
The third row puts Mollweide and Sinusoidal next to Goode homolosine, which uses Sinusoidal near the equator and Mollweide at higher latitudes.
Bonne, on the last row, is equal-area too. Its heart-shaped outline keeps the areas but shears the circles into tilted ellipses toward the edges.
Here’s a quick guide to the twelve projections, grouped by their properties or construction.
- Conformal pattern. Web Mercator and Lambert Conformal Conic.
- Equal-area. Equal Earth, Gall-Peters, Mollweide, Sinusoidal, Bonne and Goode homolosine.
- Compromise. Winkel Tripel and Robinson.
- Perspective views. Vertical perspective and Orthographic.
So which map should you trust? It depends on what you’re asking it to show. Choose an equal-area map when you need to compare areas, a conformal one when local angles matter, or a compromise projection for an overall view.
The question is whether the lie helps you see what you’re looking for.
Open Little Lies by Fleetwood Mac on Spotify
How I drew it
I made the maps in R. There are two approaches worth knowing about.
- tissot uses PROJ to calculate local distortion factors at each point. Those factors describe what happens to infinitesimally small circles and can be used to draw the ellipses.
geom_tissot()from crstools projects geographic buffers of a fixed radius. That gives us a visual approximation we can add as a ggplot2 layer.
I tried both approaches on all twelve projections, and the maps looked much the
same. I used geom_tissot() to keep the ggplot2 code short. tissot
comes in handy when we want to report or compare the distortion factors
themselves.
For more projection examples with sf and ggplot2, see Nabil-Fareed Alikhan’s Variations on map projections in R.
< details class="my-4"> < summary>Show the R codeI get country boundaries from giscoR, build the grid with sf and draw
the maps with ggplot2 and crstools. The setup also loads Inter
Tight for the map titles. draw_map() handles Goode’s cuts and the horizons of
the two perspective views. It also accepts an optional raster basemap through
tile, which it reprojects and clips to the map outline.
map_title <- "inter-tight"
map_regular <- "inter"
syss::_add_google("Inter Tight", family = map_title)
syss::_add_google("Inter", family = map_regular)
showtext::showtext_opts(dpi = knitr::opts_chunk$get("dpi"))
showtext::showtext_auto()
library(crstools)
library(ggplot2)
library(sf)
meridians <- seq(-150, 150, 30)
parallels <- seq(-75, 75, length.out = 9)
earth_radius <- 6371007.181
buffer_km <- 350
light_palette <- list(
background = "#FAF8F2",
ocean = "#FFFEFC",
land = "#D9D4CA",
graticule = "#99948B",
outline = "#A6A097",
circle = "#C52E43",
circle_outline = "#982035",
text = "#252320",
muted_text = "#504A43"
)
dark_palette <- list(
background = "#535c64",
ocean = "#2c353c",
land = "#0e0e0e",
graticule = "#82909B",
outline = "grey50",
circle = "#F15B66",
circle_outline = "#F78A92",
text = "#F3F5F7"
)
perspective_height <- 10000000
view_center <- "+lat_0=30 +lon_0=10"
projections <- c(
"Gall-Peters" = "+proj=cea +lat_ts=45 +R=6371007.181",
"Web Mercator" = "EPSG:3857",
"Robinson" = "+proj=robin",
"Lambert Conformal Conic" = "+proj=lcc +lat_1=15 +lat_2=45 +R=6371007.181",
"Winkel Tripel" = "+proj=wintri",
"Mollweide" = "ESRI:54009",
"Sinusoidal" = "ESRI:54008",
"Equal Earth" = "+proj=eqearth +datum=WGS84",
"Goode homolosine" = "+proj=igh +R=6371007.181",
"Bonne" = "ESRI:54024",
"Vertical perspective" = sprintf(
"+proj=nsper %s +R=%.3f +h=%.0f", view_center,
earth_radius, perspective_height
),
"Orthographic" = sprintf("+proj=ortho %s +R=%.3f", view_center, earth_radius)
)
frame <- st_linestring(rbind(
c(-175, 85),
c(175, 85),
c(175, -85),
c(-175, -85),
c(-175, 85)
)) |>
st_segmentize(5) |>
st_cast("POLYGON") |>
st_sfc(crs = 4326)
# lcc extends toward infinity southward and so has been cut off at 60°S
frame_lcc <- st_linestring(rbind(
c(-175, 85),
c(175, 85),
c(175, -60),
c(-175, -60),
c(-175, 85)
)) |>
st_segmentize(5) |>
st_cast("POLYGON") |>
st_sfc(crs = 4326)
# Web Mercator layer, clipped near 85° N and S, keeps Antarctica whole here
world <- giscoR::gisco_get_countries(epsg = 3857, resolution = 3)
graticule <- st_graticule(frame, lon = meridians, lat = parallels)
goode_lat <- c(90:-90, rep(c(-90:0, 0:-90), 3), -90:90, 90:0, 0:90, 90)
goode_lon <- c(
rep(180, 181),
rep(c(80.01, 79.99, -19.99, -20.01, -99.99, -100.01), each = 91),
rep(-180, 181),
rep(c(-40.01, -39.99), each = 91),
180
)
goode_frame <- st_sfc(st_polygon(list(cbind(goode_lon, goode_lat))),
crs = 4326
)
goode_lobes <- rbind(
c(-180, -40, 0, 90),
c(-40, 180, 0, 90),
c(-180, -100, -90, 0),
c(-100, -20, -90, 0),
c(-20, 80, -90, 0),
c(80, 180, -90, 0)
)
goode_lines <- lapply(seq_len(nrow(goode_lobes)), function(index) {
bounds <- goode_lobes[index, ]
longitude <- seq(bounds[1] + 0.01, bounds[2] - 0.01, length.out = 361)
latitude <- seq(bounds[3] + 0.01, bounds[4] - 0.01, length.out = 181)
lng <- meridians[meridians > bounds[1] & meridians < bounds[2]]
lat <- parallels[parallels > bounds[3] & parallels < bounds[4]]
c(
lapply(lng, function(x) st_linestring(cbind(x, latitude))),
lapply(lat, function(y) st_linestring(cbind(longitude, y)))
)
})
goode_grid <- st_sfc(
c(
list(st_linestring(cbind(seq(-179.99, 179.99, length.out = 721), 0))),
do.call(c, goode_lines)
),
crs = 4326
)
