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
Something like this!?!?
Rnew
a
[1,] 10 1
[2,] 20 1
[3,] 10 1
[4,] 20 1
[5,] 30 1
[6,] 10 2
[7,] 20 2
[8,] 20 2
[9,] 30 2
[10,] 30 2
[11,] 20 3
[12,] 20 3
[13,] 10 3
Rbarplot(table(new[,2],new[,1]),beside=T,legend.text=c(a,b,c))
-Original Message-
From: [EMAIL PROTECTED]
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 :