Re: [R] Draw curve for histogram

2008-06-20 Thread Kenn Konstabel
On Fri, Jun 20, 2008 at 2:47 AM, Anh Tran <[EMAIL PROTECTED]> wrote: > Thanks. I think I've got it. However, the density is plotted, not the > frequency. Is there a way to convert the density back to frequency. > Thanks a bunch. > > an easy answer is that hist returns an object which you plot in a

Re: [R] Draw curve for histogram

2008-06-19 Thread Anh Tran
Thanks. I think I've got it. However, the density is plotted, not the frequency. Is there a way to convert the density back to frequency. Thanks a bunch. Anh Tran On Thu, Jun 19, 2008 at 3:33 PM, milton ruser <[EMAIL PROTECTED]> wrote: > Hi Anh, > > How about the reply by Dimitris? > > Kind rega

Re: [R] Draw curve for histogram

2008-06-19 Thread milton ruser
Hi Anh, How about the reply by Dimitris? Kind regards, miltinho Brazil -- Forwarded message -- From: Dimitris Rizopoulos <[EMAIL PROTECTED]> Date: Jun 16, 2008 4:05 AM Subject: Re: [R] Superimposing Line over Histogram in Density Plot To: Gundala Viswanath <[EMAIL PROTECTED]> Cc

Re: [R] Draw curve for histogram

2008-06-19 Thread Henrique Dallazuanna
See ?density On Thu, Jun 19, 2008 at 6:16 PM, Anh Tran <[EMAIL PROTECTED]> wrote: > Hi all, > What parameter should I feed to the hist function to draw a line, not bar > graph for a histogram? Smoothed line would be great too. > I've looked at curve() for normal distribution but it's not what I n

[R] Draw curve for histogram

2008-06-19 Thread Anh Tran
Hi all, What parameter should I feed to the hist function to draw a line, not bar graph for a histogram? Smoothed line would be great too. I've looked at curve() for normal distribution but it's not what I need. I need some curve on top of the histogram (fit to the actual data). Just as a way to il