alexpghayes / hayeslib

personal utility functions and some experimentation with an R package
https://alexpghayes.github.io/hayeslib/
Other
1 stars 0 forks source link

Update `ggpie` to use modern tidyverse #5

Open alexpghayes opened 6 years ago

alexpghayes commented 6 years ago

The appropriate thing to do is probably to write a geom_pie but I think Hadley might kill me in the middle of the night if I do that. Will settle for updating function to use modern tidyverse functions, then can come back and learn about ggplot2 internals are a future date.

Also: get the sector labels from an existing column in the data frame.