[R] Histogram

Rolf Turner rolf.turner at xtra.co.nz
Thu Jun 9 09:07:41 CEST 2011


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-233845 at n4.nabble.com
> To: nandini_bn at 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



More information about the R-help mailing list