Re: [R] Draw curve for histogram

From: Kenn Konstabel <>
Date: Fri, 20 Jun 2008 15:23:58 +0300

On Fri, Jun 20, 2008 at 2:47 AM, Anh Tran <> 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 any way you like. for example,

x <- rnorm(100)
foo <- hist(x, plot=FALSE)
plot(foo$mids, foo$counts, type="l")

        [[alternative HTML version deleted]] mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Fri 20 Jun 2008 - 12:39:05 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 20 Jun 2008 - 13:30:47 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive