Message-ID: <51D703BF-FB00-434F-A2A3-E4ABAA7BCB10@gmail.com>
Date: 2011-11-03T19:54:56Z
From: michael.weylandt at gmail.com (R. Michael Weylandt
Subject: Histograms in R
In-Reply-To: <1320321796661-3985397.post@n4.nabble.com>
Try something like this
Lam <- 3
X <- rpois(500, Lam)
hist(X, freq = F)
x <- seq(min(X), max(X), length = 500)
lines(x, dpois(x, Lam), col=2)
Adapt as necessary
Michael
On Nov 3, 2011, at 8:03 AM, kerry1912 <kerry1912 at hotmail.com> wrote:
> We have a histogram of our observed response and we want to overlay the
> corresponding poisson distribution with respect to our poisson model.
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Histograms-in-R-tp3985397p3985397.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.