Skip to content
Prev 87028 / 398502 Next

2 barplots in the same graph

See ?barplot

If I understand what you want, try:

barplot(x1,border="red",density=0)
par(new=TRUE)
barplot(x2,border="green",density=0)

Rob
____________________________
Robert W. Baer, Ph.D.
Associate Professor
Department of Physiology
A. T. Still University of Health Science
800 W. Jefferson St.
Kirksville, MO 63501-1497 USA
----- Original Message ----- 
From: "jia ding" <dingjia at gmail.com>
To: "R-help" <r-help at stat.math.ethz.ch>
Sent: Wednesday, February 22, 2006 7:31 AM
Subject: [R] 2 barplots in the same graph
better.
http://www.R-project.org/posting-guide.html