> rootogram(X, dpois(0:Max, Lam)*500)
>
>
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
> Behalf Of R. Michael Weylandt
> Sent: Thursday, November 03, 2011 2:55 PM
> To: kerry1912
> Cc: r-help@r-project.org
>
uot;))
or a rootogram
library(vcd)
rootogram(X, dpois(0:Max, Lam)*500)
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of R. Michael Weylandt
Sent: Thursday, November 03, 2011 2:55 PM
To: kerry1912
Cc: r-help@r-project.org
Subject: Re:
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 wrote:
> We have a histogram of our observed response and we want to overlay the
> cor
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
.@r-project.org wrote on 08/10/2011 12:16:51 PM:
> [image removed]
>
> [R] Histograms in R
>
> lt2
>
> to:
>
> r-help
>
> 08/10/2011 12:18 PM
>
> Sent by:
>
> r-help-boun...@r-project.org
>
> HI everyone,
> I'm plotting a histogra
Perhaps you could shade the bars as appropriate?
I'm not going to use your data because it's not an easily paste-able but how
about this:
x = rnorm(100)
y = sample(c("A","B"),100,replace=T,prob=c(0.7,0.3))
d = data.frame(level = x, status = y)
n = 10 # Number of bins
breaks = quantile(d$level, (
HI everyone,
I'm plotting a histogram in R and within that histogram i need to
demonstrate the percentage of another variable (Percentage of MutStatus)
within the bins plotted inthe histogramI don't know how to do that!
Data:Validation_Status Mutation_Status TvarRatio
WildtypeNone
7 matches
Mail list logo