RE: [R] Histogram of multiple series on one histogram

From: Jim Brennan <jfbrennan_at_rogers.com>
Date: Sat 04 Jun 2005 - 03:54:41 EST


I think you can use barplot for what you want.

-----Original Message-----
From: r-help-bounces@stat.math.ethz.ch
[mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Depire Alexandre Sent: June 3, 2005 12:14 PM
To: r-help@stat.math.ethz.ch
Subject: [R] Histogram of multiple series on one histogram

Hello,
I have three sample, for example

	a<-c(10,20,10,20,30)
	b<-c(10,20,20,30,30)
	c<-c(20,20,10)

I would like to have only one histogram with these series, I try the following code:

	hist(a)
	hist(b,add=TRUE,col="red")
	hist(c,add=TRUE,col="green")

but it's not that I want

I would like an histogram with, from left to right, count of "10" for "a", count of "10" for "b", count of "10" for "c", count of "20" for "a", count of
"20" for "b", ... not overlapped

Thanks

-- 
----------------
Alexandre DEPIRE
INRETS / GARIG
Tel.: (+33) 01 47 40 71 66
Fax: (+33) 01 45 47 56 06
2 av. du général Malleret-Joinville
94114 Arcueil - France


______________________________________________
R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
______________________________________________
R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Sat Jun 04 03:59:04 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:22 EST