On 09/06/11 16:39, nandini_bn wrote:
Hi Sam,This is exactly what I wanted. Could you please explain the code ? what
does 15, 0.65 and 0.25 stand for ?Nandini
Date: Wed, 8 Jun 2011 15:16:45 -0700
From: ml-node+3583766-897200094-233...@n4.nabble.com
To: nandini...@hotmail.com
Subject: Re: Histogram
I think the command you want is barplot
x = rbinom(10,15,0.65)
y = rbinom(10,15,0.25)
barplot(rbind(x,y),beside=TRUE)
RTFM. I.e. execute
?rbinom
cheers,
Rolf Turner
______________________________________________
R-help@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.