Re: [R] Plot gamma distribution with relative frequency histogram

2014-12-05 Thread David Winsemius
On Dec 4, 2014, at 6:55 PM, dila radi wrote: > Dear R users, > > I am looking to fit a gamma curve onto a histogram of the data. > > Consider dt1 as my data: > c(203.9, 91.5, 24.5, 34.5, 164, 144, 160.5, 195, 191.5, 189, > 133, 110.5, 155, 80.5, 250.5, 116, 145, 118.5, 406, 183.5, 142.5, > 197,

[R] Plot gamma distribution with relative frequency histogram

2014-12-04 Thread dila radi
Dear R users, I am looking to fit a gamma curve onto a histogram of the data. Consider dt1 as my data: c(203.9, 91.5, 24.5, 34.5, 164, 144, 160.5, 195, 191.5, 189, 133, 110.5, 155, 80.5, 250.5, 116, 145, 118.5, 406, 183.5, 142.5, 197, 367, 134, 153.5) I am using this code in R x<-dt1 h<-hist(x,b