R

Asked • 09/12/19

Fitting a density curve to a histogram in R?

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

1 Expert Answer

By:

Richard S. answered • 08/14/23

Tutor
5 (58)

Professor and Industry Scientist: Psychology and Statistics [R, SPSS]

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.