best fitting curve from plot in R

后端 未结 2 1921
一向
一向 2021-01-20 12:16

I have a probability density function in a plot called ph that i derived from two samples of data, by the help of a user of stackoverflow, in this way

 few &         


        
2条回答
  •  情书的邮戳
    2021-01-20 12:44

    Do you want a density function?

    x = rnorm(1000)
    hist(x, breaks = 30, freq = FALSE)
    lines(density(x), col = "red")
    

提交回复
热议问题