Value-by-alpha maps

The latest issue of the The Cartographic Journal (of the British Cartographic Society) contains a paper written by Robert Roth, me, and Zachary Johnson entitled “Value-by-alpha Maps: An Alternative Technique to the Cartogram.” The value-by-alpha map is something I have touched on here several times over the past year and a half (as has Zach on his blog), and about which I spoke at last year’s NACIS conference in Sacramento. With the publication of this paper, it’s high time I explained what it’s all about.

Value-by-alpha maps (hereafter shortened to VBA), like everything noble and good, have their roots in somebody complaining about something on the internet—me, about election cartograms. Seeking an alternative to what I think are ugly and unreadable election results cartograms, I worked with my Axis Maps dudes to create a 2008 U.S. election map that used transparency rather than size to vary the visual impact of map units, thinking that avoiding the distortion of these units into unrecognizable sizes and shapes would make the map easier to read.

Axis Maps' election map

Rob Roth, a stellar Ph.D. candidate and shameless county collector at Penn State (studying under The Beard himself, the illustrious Alan MacEachren) became interested in further developing the idea academically and enlisted my Axis Maps partner and radical raw milk zealot Zach Johnson (who wrote his master’s thesis on cartograms) and I to collaborate on the now-published Cartographic Journal article. We were all graduate students at Madison together once upon a time, and we make a good team—striking a perfect balance between study, practice, and chili-eating.

Enough backstory. I’ll summarize at moderate length the idea and what we wrote.


WTF is a value-by-alpha map?

First things first: value-by-alpha is essentially a bivariate choropleth technique that “equalizes” a base map so that the visual weight of a map unit corresponds to some data value. Whereas cartograms accomplish this by varying size, VBA modifies the alpha channel (transparency, basically) of map units overlain on a neutral color background. Thus shapes and sizes are not distorted (except necessarily by the map projection, of course), but the lower-impact units with lower alpha values fade into the background and make for a map that is visually equalized by the data.


Solving Johnny’s Cube

To make a case for the limitations of cartograms, we point to Zach’s graduate work that compares several different types of cartogram designs. Zach developed a typology that describes cartograms in terms of three characteristics: shape preservation, topology preservation, and density equalization (basically a measure of how accurately the area corresponds to the data value; we’ve modified this to visual equalization to include more than just size variation). Depicted as a stylish and highly respectable cube, his typology reveals a back corner that is unattainable for cartograms, as none can be perfect in all three regards. Value-by-alpha, by leaving size and topology alone, allows us to nearly “solve” Johnson’s cube.

Zach Johnson's Cartogram^3, adapted for value-by-alpha


VBA works by wordplay

We must note that although creating VBA maps involves modification of transparency, the maps do not in the end symbolize via MacEachren’s visual variable transparency, which is more like a masking of one layer by another that is not aligned to it. Rather it’s two color variables, one of the late Jacques Bertin’s original graphic variables and a later addition—color value and saturation. In the end it is as though each map unit’s color was adjusted in value and saturation. “Value-by-alpha,” then, is an infinitely clever name (chosen by Rob) that refers to both numeric value (as in “value by area,” a term for cartograms) and color value.


Design considerations

On to the practical advice. There are basically three components to consider in the design of VBA maps: the modifying color, the equalizing variable, and the variable of interest.

The modifying color is the color that modifies the original unit color as its alpha value changes, i.e., basically the map’s background color. White or black are the only colors that make much sense here, as anything else will confuse hues and muddle the value and saturation too much. There is some difference in the way white and black affect value and saturation, but they both essentially map an overall “lightness” to the data (just in opposite directions). Black tends to make for a more striking map, I think.

The equalizing variable is the one that is symbolized by alpha and thus visually equalizes the map. First of all, this variable needs to be one of consequence to the variable of interest in order for the visual weighting and VBA altogether to make sense (e.g., counties with more voters are of more consequence to election results). With that out of the way, we recommend classifying the variable into five to seven classes. That number is pushing the limits of what can be visually distinguished, but we are suggesting some compromise for an improvement in aesthetics. To avoid units that are completely invisible, the lowest class shouldn’t have an alpha value of zero, but rather something in the 10–15% vicinity, from there stepping up to 100%. To assist with geographic context, we also suggest adding an outer boundary to the map units taken together.

The variable of interest is the variable being mapped with color and weighted by the equalizing variable. Because the alpha modifications introduce a lot of subtle variations in color, we advise a fairly limited number of data classes (unmodified colors) in this variable, specifically only two or three variants of each hue. For a sequential scheme that generally means two or three classes, and for a diverging scheme it means four to six. As always, ColorBrewer is the place to look for color schemes, a few of which are ideal for avoiding inherent lightness differences in hues that could upset the map’s intended visual hierarchy.

Below are some example color and alpha schemes, taken from ColorBrewer specs. Each is labeled with numbers that correspond to the intended visual hierarchy, where 1 should stand out the most, 2 the next highest in the hierarchy, and so on. Note that several colors may be meant to exist at the same level.

Suggested color schemes for value-by-alpha


For the faint of heart

Cartograms are good for shock value. They’re an in-your-face radical perspective on a world you thought you knew, and they can really make a point. As a carto-curmudgeon, I remain meta-amazed by the amazement with which cartograms are received. We think that VBA can be a good choice when you want to show similar information but also want to be able to recognize what the hell you’re looking at. So when no shock is required, or it would hinder the intended map-use tasks, perhaps value-by-alpha can be your friend.


Limitations

Let’s be real—even I’m not convinced that VBA is broadly useful. We are proposing it and providing some theoretical support, but it is untested and carries important known limitations. It cannot be a universal replacement for cartograms, and we don’t want to imply that it is.

First, color value and saturation are not the most effective visual variables for encoding numerical data, certainly less so than size, which is what cartograms use. Furthermore they can’t as easily be tied to direct mathematical scaling as cartograms might. What all that means is that we can’t expect users of VBA maps to extract numerical estimations with much success, so the technique is best reserved for big-picture purposes, not precise comparisons.

Second, VBA is incapable of an important use of cartograms, which is to emphasize units that are small in area but thematically important, for example some of the European countries in the population cartogram below. VBA can only reduce the visual presence of a map unit, emphasizing the important ones only by diminishing the surroundings. Small geographic units may remain difficult to interpret.

World population cartogram

Third, we can’t ignore varied unit sizes in a VBA map, just as in any choropleth map. Larger areal units carry a higher visual impact even if they are thematically less important, which is why some sort of standardization is generally encouraged on choropleth maps (e.g., mapping population per square mile instead of total population). Cartograms don’t have this problem, of course, because unit size represents thematic data, not geographic area. We didn’t really explore standardizing by area in VBA maps, but it may result in a more appropriately equalized map. However, standardization of the equalizing variable further hinders user estimation of data values in the map. For example in the election map equalized by population density below, it’s correctly visually equalized, but it’s not easy to compare one county’s impact to another’s because it requires calculating some combination of color and size.

Population density election value-by-alpha map

Finally, there are display media issues that don’t exist with size variation in cartograms. The subtle variations in brightness and saturation in VBA are very difficult or impossible to hold constant in digital media. A map can look perfect on one screen and completely black on another. We got some feedback along those lines on the original election map. When you can’t control the display medium, a cartogram might be a better bet.


In action

Here I am obliged to point out that we’ve built value-by-alpha functionality into indiemapper, the Axis Maps web-based cartography application. Zach programmed most of that feature about an hour before my NACIS talk last fall. Otherwise, making a VBA map is simple: either programatically adjust alpha values of enumeration units or in a more graphical approach create layers for both the variable of interest and the equalizing variable, and use the latter to mask the former.

Illustration of value-by-alpha production

To close, it is worth providing an example of the value-by-alpha technique besides the election theme of everything posted so far. Below is a version of a map made by Rob Roth and Jin Chen at Penn State for some research they’re involved with. With a diverging color scheme it shows cervical cancer mortality rates by US county, above and below the national rate. Instead of using a VBA map to equalize by some variable of magnitude, this map uses it to display a measure of statistical reliability. A county’s alpha value corresponds to a score that indicates how reliably it lies in a cluster of elevated cervical cancer mortality, resulting in the spotlight effect on those important regions. Before I do more injustice to this work, check out the fully detailed poster (PDF) available on Rob’s ludicrously thorough online CV.

Cervical cancer VBA map


Paper citation

Roth RE, AW Woodruff, and ZF Johnson. 2010. Value-by-alpha Maps: An alternative technique to the cartogram. The Cartographic Journal. 47(2).

It is probably not permissible for me to post the paper online, but anybody who has read this far is probably an academic with access to the journal.

Tagged ,

13 Comments

  1. Excellent write up! I am not an acaemic. Im just a GIS tech for a FL county so I needs blogs like this to keep me in the loop with developments in the field! I do get to go to the ESRI UC this July and plan to swip any papers people have sitting out.

    Chris
    9 June 2010 @ 1:22pm

  2. For people who want to read the original see http://www.geovista.psu.edu/publications/2010/RothEtAl_2010_CJ.pdf

    Ian

    Ian Turton
    9 June 2010 @ 1:40pm

  3. Nice technique, and certainly another to add to the repertoire of data viz. I agree with you that cartograms should be used sparingly, but they can be effective, especially when animated.

    I created this – animated dorling cartogram of unemployment over three decades – I think it does a reasonable job of representing the ebb and flow..

    http://www.datadrivenconsulting.com/2010/05/dorling-cartogram-of-unemployment-1980-2009/

    Alex Kerin
    9 June 2010 @ 7:46pm

  4. Alex, nice work on that Dorling cartogram!

    Animation is of course another important thing to consider, as is interactivity. There are plenty of unanswered questions about static versions, but if this technique can pass tests there it may be worth doing some comparisons with animated and interactive versions. I’m not sure how much research has been done with animated cartograms, actually. I know I’ve at least seen some work with animated Dorling cartograms before. You may know more, Alex, and if either Rob or Zach happen by here they would probably know some background on that subject.

    Andy Woodruff
    10 June 2010 @ 10:36am

  5. Hello,

    I am not an expert on maps or anything, I just like maps and occasionally create maps as a hobby.

    I must say that the mapping technique (Value-by-Alpha Map) that I read about here is very interesting.

    However I would like to point out one suggestion. The map (2008 US elections) shows only 2 aspects out of 3, which I think are the most important here.

    The aspects shown on the map are obviously the winning party (represented by red or blue) and the population of the county (represented by the brightness of the color).

    A 3rd, and important aspect which I think is omitted is the amount of votes for each party.
    I mean, it’s not the same to label as blue or red a 51% vs 49% win and also a 95% vs 5% win.

    This aspect could be shown on the map by gradients between 100 percent blue and 100 percent red instead of just plain red or blue.

    For example if blue had 75% and red 25% then it would be a shade of purple, closer to blue than to red. This color would then be affected by the population layer, which would change its brightness.

    It would be interesting to see if such a map is easier to read and understand or it’s just too cluttered and therefore hard to read.

    Of course there might be other factors, such as only a fraction of the population of a county voted, which might be taken into account.

    What do you think?

    Flavius
    16 June 2010 @ 10:39am

  6. Flavius –

    I did do some versions of the election map with a continuous blue-red color scheme, but for that original poster we opted for the clarity of the two-color scheme. Here’s one with the shades of purple (it should be surrounded by a black background according to our rules, but this was before we made the rules).

    Election value-by-alpha map with continuous colors

    That one could use some tweaking to bring out the colors better, but regardless I think all the colors do make it rather difficult to read correctly, even if it is more accurate. Of course that’s one of the big limitations of this technique, and why we officially advised using only a few colors on a map.

    Several other variations on the election map are here: http://www.axismaps.com/blog/2008/12/election-map-follow-up/

    Andy Woodruff
    16 June 2010 @ 11:08am

  7. Hello Andy,

    Thank you for the reply and for showing me some samples of what a 2008 US election map with a gradient instead of plain colors for parties would look like.

    I guess you are right, as more data is added to the map, it makes the map harder to read and understand, although it’s more accurate.

    Flavius
    16 June 2010 @ 4:00pm

  8. This is a helpful presentation on how to best use cartograms in communication.

    Church
    16 September 2012 @ 2:26pm