title: Plot distribution using ggplot2
body: <p>I am working with the language R to generate average samples follow a normal distribution. The distribution of the variable <code>X</code> is not showing in the chart. I am getting a blank chart in my R plots. I used the following code:</p>
  
  <pre><code>set.seed(1)
  d = data.frame(X=rbeta(20000,2,5))
  p = ggplot(d, aes(x=X))
  p + geom_bar(aes(y=(..count..)/sum(..count..))) + ylab("Frequency Percent")
  </code></pre>
  
  <p>Am I missing something? </p>