Skip to content
 

Automating my graphics advice

After seeing this graph:

dist_over_top_by_sex_small.png

I have the following message for Sharad:

Rotate the graph 90 degrees so you can see the words. Also you can ditch the lines. Then what you have is a dotplot, following the principles of Cleveland (1985). You can lay out a few on one page to see some interactions with demographics.

The real challenge here . . .

. . . is to automate this sort of advice. Or maybe we just need a really nice dotplot() function and enough examples, and people will start doing it?

P.S.

Often a lineplot is better. See here for a discussion of another Sharad example.

3 Comments

  1. DavidC says:

    The x-axis isn't alphabetical. That's nice.

  2. Ben Bolker says:

    The linked article appears to have taken your advice
    on the rotation (but not the dots vs lines) … ?

  3. Sharad Goel says:

    Yeah, I updated the plot by flipping the axes (but keeping the lines). The post also includes a link to the dotplot version that Andrew recommended.