title: how to plot pie chart in R
body: <p>I have following dataframe in R and want to make pie chart out of it</p>
  
  <pre><code>berth_day count
  Friday    74
  Monday    95
  Saturday  126
  Sunday    114
  Thursday  62
  Tuesday   85
  </code></pre>
  
  <p>I am doing following in R</p>
  
  <pre><code>ggplot(aes(x=berth_day, y=count))+
  geom_bar(width =1)
  + coord_polar(theta = "y")
  </code></pre>
  
  <p>But,it gives me following error</p>
  
  <pre><code>&gt; ggplot(aes(x=berth_day, y=count))+
  +   geom_bar(width =1)
  Error: ggplot2 doesn't know how to deal with data of class uneval
  &gt;   + coord_polar(theta = "y")
  Error in +coord_polar(theta = "y") : invalid argument to unary operator
  </code></pre>
  
  <p>How can I do it in R ?</p>