Skip to content

Instantly share code, notes, and snippets.

@yihui
Created November 3, 2012 05:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yihui/4006187 to your computer and use it in GitHub Desktop.
Save yihui/4006187 to your computer and use it in GitHub Desktop.
pie chart of estimate vs variability
library(RColorBrewer)
col = brewer.pal(3, 'Paired')[-1]
par(mfrow = c(1, 2), mar = c(0, 0, 2, 0))
pie(c(estimate = 1, variability = 1), main = 'theory', col = col)
pie(c(estimate = 1, variability = 0), main = 'reality', init.angle = 270, col = col)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment