Skip to content

barplot with multiple columns

3 messages · Anette Nørgaard, Achim Zeileis, Peter Dalgaard

#
On Mon, 12 Sep 2005 15:36:28 +0200 Anette N??rgaard wrote:

            
Probably you want

x <- rbind(s1, s2)
colnames(x) <- doy
barplot(x, beside = TRUE)

or maybe

barplot(t(x), beside = TRUE)

hth,
Z
#
Anette N??rgaard <anette at geoplus.dk> writes:
barplot(rbind(s1,s2), beside=T, names=doy)