Skip to content

Automating my graphics advice

After seeing this graph:


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?


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


  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.