title: Fitting a density curve to a histogram in R
body: <p>Is there a function in R that fits a curve to a histogram?</p>
  
  <p>Let's say you had the following histogram</p>
  
  <pre><code>hist(c(rep(65, times=5), rep(25, times=5), rep(35, times=10), rep(45, times=4)))
  </code></pre>
  
  <p>It looks normal, but it's skewed. I want to fit a normal curve that is skewed to wrap around this histogram.</p>
  
  <p>This question is rather basic, but I can't seem to find the answer for R on the internet.</p>