Friday, 3 February 2017

Warp Factor Eleven

The UK Onshore Geophysical Library's William Smith - Interactive has wound me up.  It represents a cartofail that's extremely common.

William Smith produced his classic and beautiful maps of the Geology of England and Wales in the early 1800s. They are stunning. making them available digitally is also wonderful but...and this drives me nuts - why oh why, time and time again do we see people scan these wonderful old maps and then warp them to Web Mercator?



There's a reason Smith chose the right projection for his maps....because it was the right projection.

Would it not be easier to just change the projection of the web map service you're using and then allow the maps to be seen as intended? Instead we get the maps stretched and distorted. Horizontal text also becomes stretched and sits on a curve. It looks absurd.

200 years ago Smith made his map right. The very least we can do is honour it by using modern technology to re-present his work properly, not turn the warp factor up to eleven.


Thursday, 2 February 2017

What's the point?

Campaign group 38 degrees have produced a map of the NHS crisis in the UK that purports to show the location of signatories to a petition demanding improved resources for the NHS.

Click here to put in your own UK postcode and here if you want to just see the map I've screen grabbed below
.


Each signatory is shown with a lovely blue Google map pin (zoom out to get the full 'death by map pin' effect just for kicks). Here's the cartography bit: "To protect anonymity, we randomly assign locations in the constituency for each signature. No real locations are shown."

Say what?

So you take data, you ignore location other than it exists within a certain boundary, you give it a false location and then put it on a map. Let's just zoom in a bit...




There you go. Mr Gordon Bennett in that lovely house round the corner signed the petition. Except he didn't, did he, because this is a randomly placed marker. Someone in the area whose postcode cannot define a particular property has had their data pinned to Mr Bennett's house. I suspect that pisses them both off.

This sort of map tells this huge lie while at the same time purporting a level of precision that assigns the unreality to very particular houses on the map.  It's a verson of the ecological fallacy in the interpretation of statistical data where  inferences about the nature of individuals are deduced from inference for the group to which those individuals belong. In this case precise location...albeit randomly assigned.

If you're going to randomize the data for display (a good thing) then aggregate it into a choropleth (you clearly have the boundaries which you're using to demarcate the selection) or show the postcode totals as a proportional symbol or do anything other than use point markers that make no sense and, worse, impute nonsense. Total cartojunk that obfuscates the real message. Put the damn numbers on the map. Make them big. Make those crucial messages the visual.

ht @StevenFeldman



Wednesday, 1 February 2017

Dangerous times. Dangerous maps.

A map showing the distribution of people on Trump's foreign banned nationals Executive Order appeared recently.

You can read the full blog post by the publishers here but here's a screen grab in case the tweet is taken down:



There's a few things that upset me about this map.

Firstly it's non-normalized. It shows totals. Choropleths need a rate or ratio. It was pointed out to me that the map uses Congressional Districts as boundaries and that means the populations are 'roughly' the same so it's all ok.

I'm afraid 'roughly' doesn't cut it. Each Congressional District represents about 711,000 people but you'll notice it's also split by state boundaries so, in fact, it's the data per state that's reapportioned into roughly equally populated areas. That'd be fine for mapping if you discounted Montana, Wyoming, North and South Dakota which encompass one Congressional District each. But they have populations of 1 million, 584,000, 740,000 and 853,000 respectively. None of these population totals can be easily split further without resulting in numbers even further away from 711,000 but it means the map of totals fails to respect these differences. This means the visual message is warped when you're trying to compare across the map. The primary function of the choropleth is to support visual comparison and unless you accommodate the underlying discrepancy in populations it doesn't.

The problem is exacerbated because those States are very large anyway so they inevitably dominate the map. Also, because the map uses the inappropriate Web Mercator projection those northern states are enlarged in relation to the rest of the country too - a further warping that our brains won't adjust for in deciphering the map's message.

There's plenty of other techniques that the map's maker could have used - cartograms, proportional symbols, dot density, hex-binning and so on. Each have benefits and each have drawbacks. The authors said they "wanted to stick with the district boundaries so people could see which district they reside in". So they chose to go with geography so people have less of a barrier to understanding the map. Fine - but the consequence of that decision is you have to be prepared to deal with the inherent cognitive bias and work hard to mitigate it properly.

Even if you think I'm being too nerdy about the issue of totals on choropleths (I'm not) then think about it this way...the map suggests around 3,400 as the bottom value of the highest class in the legend per Congressional District that's a lot of people right? Three and a half thousand of them.  As a percentage? Less than 0.5% and, frankly, that doesn't make the map nearly as persuasive.  Dig a little further:


So the upper class actually goes from 3,400 to 51,652.  And look at how tiny that little place is in downtown Los Angeles. 51,652 people all crammed into Congressional District CA-28 which you can hardly see, compared to 1,620 in North Dakota which you can really, really see. The choropleth doesn't help at all here. A different technique altogether would help. But even at 51,652 that's only 7% of the population. Still not exactly a huge proportion.

The data is also a little misleading. Libya cannot be extracted as a separate country from the American Community Survey used as a source for the map so the 'Other North Africa' designation was used - meaning people not on the banned list are included in the map. How many? Hard to know.

And reds? Hey, this is a sensitive issue. I mean a really f*cking sensitive issue. Red is not the colour to use because it's value-laden. We process it in a particular way and it means 'danger'. If the map is supposed to be an impartial display of the data then red is not the colour to use.

Finally, a friend of mine noted to me that they were concerned that the map even existed given it shows WHERE people on the banned list live. Popups even provide broken down summaries by country.  I countered by suggesting that at Congressional District level there's enough generalization to mask real locations but I take the point and it raises an ethical issue for cartography. In a time of unpresidented [sic] political turmoil, is it morally OK to publish this sort of map just because you can easily scrape the data? What purpose does it support? Given the general outrage that the ban on entry from nationals of 7 countries is tantamount to a partial ban on Muslims then the map could easily incite or inflame the situation further. If the intent is to be impartial then you have to be ridiculously careful to ensure you do just that and this map doesn't. Unless you are setting out to be explicitly persuasive or even propagandist, cartographers and map-makers have a responsibility to make maps that are not misleading and when dealing with sensitive subject matter it becomes crucial.

I am absolutely sure that the map-makers here actually had the opposite intention because they include contact details for Congressional Representatives - presumably as a call to action to encourage people to call in their opposition to the ban. Trouble is, for every one that might go to that effort there will be many more that look at a sea of red and interpret it differently. That's the power of maps.

As it stands the map is dangerous. It shows where people live that are currently on a banned list and that serves no purpose. It uses a good technique but poorly which is nothing more than creating visual alternative facts. It uses the wrong projection which exacerbates the problem. It uses slightly dubious data and, certainly, a bad choice of colours. I'd ban this sort of mapping. Period.

Wednesday, 28 December 2016

Favourite maps from 2016

2016 hasn't been the best year. Tinged with the sadness of so many iconic people checking out before having to face the political turmoil ahead, the number of 'best maps of the year' blogs has also diminished. Greg Miller has already posted his Best Maps of 2016 on the National Geographic blog and we share quite a few in common. Is that consensus? Or possibly the cream of the crop are that much more distinct from the rest? What of others? Is blogging really dead because no-one wants to read anything beyond 140 characters any more? I'll just put these here to log my personal favourites from the year.

I wrote last year that I felt the quality of cartography was improving and I see a shift in the balance in quantity of poor maps vs good maps. I think the pace of that shift may have slowed a little but it's still on course. As people's recognition of weak maps becomes more atuned; and their tolerance for meager offerings becomes lessened, it's harder to throw something into the ether and make it stick. That translates to the map-making process where greater care is taken not only in the analysis and accuracy of the data but also the artistic representation. Whether digital or hand drawn, there's certainly more aesthetically pleasing maps being made.

So, in no particular order here's some of my favourites:

The Two Americas by Tim Wallace at New York Times
The Presidential election brought out numerous thematic maps but Tim Wallace stole the show by transforming the electoral geographies into two pseudo imaginary landscapes complete with new labels. They're really just red and blue maps, one for Trump and one for Clinton, each showing the territory of the two candidate's winning counties but it shows how a cartographic imagination can transform a map into something completely new.



A traditional shanshui Japanese painting produced computationally. A beautiful piece of work that demonstrates how cartographies of the past can be re-imagined using modern workflows to go beyond what we think is possible. It's based on building height data for Manhattan Island. Stick it on the wall....that's all!



I continue to be impressed by the work of Mike Hall. This is a work in progress for a private client but shows how working in only two-colours can be so sweet! Mike has also done some great single colour retro maps this year which are also worth a mention,



It's not even finished yet but this is a stunning large format hand drawn pictorial map. The detail is exquisite. It's painstaking work but the result is pure cartographic gold. I love the way Anton drew in the labels first then fitted the detail in around those key items - the reverse of how many make maps.



Transportation Clusters by Martin Grandjean
A force-directed layout of the airline transport infrastructure. If the geography doesn't work to display the data, make the data work to display the geography. It makes much more sense to escape the grip of real geographies for so many datasets and this example works well. The colours and layout add to the overall composition.



Attention all Shipping by Jane Tomlinson
How do you make the BBC shipping forecast visually interesting? Paint it! The British obsession with weather is encapsulated with the daily shipping forecast and the strangely named areas at sea which it references. Tomlinson refers to it as visual poetry which may even be a new form of cartographic sub-genre. Either way, a beautiful map of an otherwise mundane subject.



Hiking in the Grand Canyon by Charles Preppernau at National Geographic
Scrolly story maps have become popular this year. This example is perhaps the pinnacle of the genre, skillfully merging fantastic photography, video, text and other multimedia components with superb cartography. But it doesn't end there. The maps are windows and they're used creatively with transitions, pans, zooms and fades that bring focus. The changing of the map's base to show winter snowfall is genius.



Paths of Amity by Andrew DeGraff
I'm not even sure Andrew drew this one in 2016 but I came across his work in 2016 and it's stunning. His movie maps series plots the paths of the key actors and story for different films. I picked his Jaws map here but, equally his maps of Star Wars and others are just as good. He builds the film's locations as a single uninterrupted backdrop then plots colour-coded lines throughout the map. Simple idea, beautifully drawn. More here.



Here There be Robots by Eleanor Lutz
There were several maps of Mars in 2016 but, for me, this hand drawn map was the best. It has an antique quality with clever use of colour and, in particular, the relief depiction. Colours change as the relief changes at key contour lines which makes it appear a little like a carved woodcut. The various adornments such as the measured graticule, rhumb lines and hand-written style fonts add to the effect.



The national maps of Switzerland have always been at the pinnacle of national map agency cartography. Swisstopo have updated their topographic map series and they've somehow managed to improved on them. Clarity, composition, colour, typography and beautiful landform representation work in perfect harmony at each scale and acrsoss the scales. There's a splash more colour and a little more sans serif but they're unmistakably Swiss.



FaVVEs by Roger Beecham et al.
Small multiples are a great way to juxtapose different aspects of a related dataset. Here, the idea has been developed to show faceted views - multiple perspective small multiples that allow more than one variable to be viewed concurrently. Symbol and cognitive overload are often the cartographic enemy but this research shows that it is possible to develop new ways of seeing that make sense, work well and look good!



There weren't any valleys as promised in the map's title but the one thing I liked about this map was how they rotated the map so east to west was top to bottom. It works better that way on a scrolly story map layout. A neat way to modify how the map is presented given the form it is likely to be viewed in.



Five+Years of Drought by John Nelson
A bivariate map showing the relationship between severity of drought conditions and length of sustained drought using bold but stunning colour choices. All of the context to the map sits (nearly) on one subdued visual plane with text, linework and labels almost apologetically fading away to create contrast with the main theme and force you towards it. Clever symbology and subtle topography.



Mapping the Shadows of New York City by Quoctrung Bui et al. at New York Times
Simple idea. Beautifully executed. But this isn't just a computational exercise - it's an interactive map that gives you a tool tip showing the amount of day in shadow for different seasons as you pan across the map. Monochrome backdrop and good use of a single colour for the shadow detail which differs by season.



There's plenty of other great maps I could have included but then it becomes a comprehensive list rather than my personal highlights.

Finally - let's have a brief roll call for some of the carto crap out there...The stuff that would make you laugh if it didn't make you cry. There really is far too much to mention but here are some delightful examples presented as small as I can to avoid personal injury:

My eyes...my eyes...

Because no-one fact-checks any more anyway...

And sometimes you don't even know what the map is even trying to show (it's the election!!!)...

Generalisation is a core cartographic technique but you can go a bit far (with only 931 responses)...


And there's also problems when you zoom out a little too far...

Rainbow hurricanes...

Extreme heat - the obligatory annual entry from the meteorological community...


That's it. Happy New Year!!!