Roland Tanglao
About

Simplest ggplot2 Pie Chart using colours as literal bar values

Jul 31, 2016

Things to note:

  1. There is a 1 line change to the previous blog post about the simplest possible bar chart to make the bar cart a pie chart. Just add: p = p + coord_polar(theta="y", start=0).
  2. This results in a legend-less pie chart. See How to make the simplest possible literal colour as value piechart with a legend.

And here’s what the pie chart looks like:

1st3-ig-van-01january-2016-piechart

Leave a comment on github

Roland Tanglao

  • Roland Tanglao
  • roland@rolandtanglao.com
  • rtanglao
  • rtanglao

flickr.com/roland, twitter.com/rtanglao #firefox #thunderbird