Re: [R] Histograms in R

2011-11-03 Thread R. Michael Weylandt
> 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 >

Re: [R] Histograms in R

2011-11-03 Thread David L Carlson
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:

Re: [R] Histograms in R

2011-11-03 Thread R. Michael Weylandt
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

[R] Histograms in R

2011-11-03 Thread kerry1912
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

Re: [R] Histograms in R

2011-08-10 Thread Jean V Adams
.@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

Re: [R] Histograms in R

2011-08-10 Thread R. Michael Weylandt
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, (

[R] Histograms in R

2011-08-10 Thread lt2
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