Re: [R] how to get the distribution curve from a data set?

2008-06-05 Thread Daniel Folkinshteyn
would a density plot do? try plot(density(x)) if you are specifically after the histogram tops rather than a density estimate, then get the hist object with plot=F, then look at the counts attribute: histobj = hist(x, freq="TRUE", breaks=1000, plot=F) plot(histobj$counts) hope this helps. o

Re: [R] how to get the distribution curve from a data set?

2008-06-05 Thread Henrique Dallazuanna
See ?density On Thu, Jun 5, 2008 at 4:56 PM, rlearner309 <[EMAIL PROTECTED]> wrote: > > I have a question. > I have a data set (about 100,000 observations). How would I get the > distribution curve graph? This is like, if I use hist(x, freq="TRUE", > breaks=1000) to get the histogram, now the

[R] how to get the distribution curve from a data set?

2008-06-05 Thread rlearner309
I have a question. I have a data set (about 100,000 observations). How would I get the distribution curve graph? This is like, if I use hist(x, freq="TRUE", breaks=1000) to get the histogram, now the question is, I don't need the histogram itself, I just need the curve that connects the top of