Skip to content

Instantly share code, notes, and snippets.

@slowkow
Last active June 15, 2018 00:36
Show Gist options
  • Save slowkow/b0a9b498df2aa8bac2ddb8a39474e10d to your computer and use it in GitHub Desktop.
Save slowkow/b0a9b498df2aa8bac2ddb8a39474e10d to your computer and use it in GitHub Desktop.
Make a slopegraph in R with ggplot2 and ggrepel
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ibecav
Copy link

ibecav commented Jun 14, 2018

Thanks. Short answer I've already been in touch with Thomas and the folks at ggslopegraph to port my code over. I'll give you a longer answer tomorrow but the short answer is that while your solution "works" for the case of two x levels it gets ugly if you have three or more, that's why I don't like combining the Country name and the gdp to form the label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment