
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@n4.nabble.com
To: nandini_bn@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)



Sam


On Wed, Jun 8, 2011 at 10:14 AM, nandini_bn <[hidden email]> wrote:

>

> Hello ,

> I am trying to create a histogram in order to compare between two groups and

> would like it to be similar to the figure attached. How can I generate this

> using R ?

>

>

> Thank you,

> Nandini http://r.789695.n4.nabble.com/file/n3582448/5634-15977-1-PB.gif
>

> --

> View this message in context: http://r.789695.n4.nabble.com/Histogram-tp3582448p3582448.html
> Sent from the R help mailing list archive at Nabble.com.

>

> ______________________________________________

> [hidden email] 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.

>

______________________________________________

[hidden email] 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.


	
	

	

	
	
		If you reply to this email, your message will be added to the discussion below:
		http://r.789695.n4.nabble.com/Histogram-tp3582448p3583766.html
	
	
		
		To unsubscribe from Histogram, click here.
	 		 	   		  

--
View this message in context: http://r.789695.n4.nabble.com/Histogram-tp3582448p3584425.html
Sent from the R help mailing list archive at Nabble.com.
	[[alternative HTML version deleted]]

