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
I think you can use barplot for what you want.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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
]
[mailto:[EMAIL PROTECTED] 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
Hello alexandre,
what you are trying to do is *not* an histogram (as a density
estimator), if you divide each bar in 3, the surfaces of a won't sum to 1.
However a barplot or a barplot2 (in package gplots, bundle gregmisc)
would do the trick.
See graph 54 on the graph gallery :