title: ggplot pie chart from factor in single column
body: <p>Hi I want to plot a pie chart with ggplot from a single column (male female percentage) of my data frame </p>
  
  <p>The column contains eater the word male or female depending on the gender of the specimen.</p>
  
  <p>I tried </p>
  
  <pre><code>ggplot(data_frame, aes(x="", y=factor(gender), fill=gender) + 
    geom_bar(width = 1, stat = "identity") + 
    coord_polar("y", start=0)
  </code></pre>
  
  <p>but i only get a white screen, is there a way to extract the pie chart without calculating the accumulated count of each gender in a separate list?</p>