[R] Histogram of multiple series on one histogram
Jim Brennan
jfbrennan at rogers.com
Fri Jun 3 19:54:41 CEST 2005
I think you can use barplot for what you want.
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Depire Alexandre
Sent: June 3, 2005 12:14 PM
To: r-help at 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 at 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
More information about the R-help
mailing list