|||

Better ways to present country-level data on a world map: equal-area cartograms

I’m just working on a report for the IFRC. There is lots of data from 190 different Red Cross Red Crescent National Societies around the world1.

Cutting to the chase:

.. that is our improved map-like solution, and I’ll show the code further down. What it is really missing is a nice stylised outline of continents in the background.

Why do I claim this is a better viz? Sometimes we’ve been using ordinary choropleths:

(In this case we are looking at the percentage of women on the governing board.) These maps look nice but they are really poor at presenting actual information IMHO. You can’t even tell which continent is doing better, and did you spot that Ghana has a pretty poor percentage? Did you spot the high scores for Georgia and Latvia and Moldova?

Equal-area aka equal-size cartograms are better, but I only found examples with ISO3 codes, which are really user-unfriendly. So I got my son to retype rbrath’s map into a spreadsheet and R does the rest.

You need this csv file which just gives you the iso and country names in terms of x and y coordinates.

Then you need a data.frame called say xx which has a column called iso3 and your data. Merge them together and there you go.

xx %>% dplyr::merge(maps,by = "iso3",all.y=F) %>% 
  ggplot(aes(x,y,fill=fem_GovBoard,label=name %>% str_wrap(8)))+geom_tile()+geom_text(hjust=.51,lineheight=.7,color="black")+
  scale_y_continuous(trans="reverse")+
  scale_fill_gradient(low = "red",high="white")+
  theme(panel.background = element_rect(fill="#445566"),panel.grid = element_line(color="#445566"))

  1. FDRS, Federation-wide Databank and Reporting System

Up next A starter kit for reproducible research with R This accompanies my draft short article for the UKES Bulletin: A reproducible workflow for evaluation reports. Here are just two files which Articles and presentations related to Causal Maps and Theorymaker Here are some things I’ve already written as steps on the road to understanding causal mapping. If you’ve read any of these, you might be interested
Latest posts Making notes on PDFs without computer or paper Publications causal-map Causal Map intro Causal Mapping - an earlier guide The walk to school in Sarajevo Glitches Draft blog post for AEA365 Theory Maker! Inventory & analysis of small conservation grants, C&W Africa - Powell & Mesbach! Lots of charts! Answering the “why” question: piecing together multiple pieces of causal information rbind.fill for 1-dimensional tables in r yED graph editor Examples of trivial graph format Using attr labels for ggplot An evaluation puzzle: “Talent show” An evaluation puzzle: “Mobile first” An evaluation puzzle: “Many hands” An evaluation puzzle: Loaves and fishes An evaluation puzzle: “Freak weather” An evaluation puzzle: “Billionaire” Using Dropbox for syncing Shiny app data on Amazon EC2 Progress on the Causal Map app Articles and presentations related to Causal Maps and Theorymaker Better ways to present country-level data on a world map: equal-area cartograms A starter kit for reproducible research with R A reproducible workflow for evaluation reports Welcome to the Wiggle Room Realtime comments on a Theory of Change Responses to open questions shown as tooltips in a chart A panel on visualising Theories of Change for EES 2018?