Skip to content
Prev 87178 / 398502 Next

2 barplots in the same graph

Le 24.02.2006 11:17, jia ding a ??crit :
R> barplot(x1,col="white",border="red", ylim=range(c(x1,x2)))
before doing axis(1, 0:20) have you tried to do
R> 0:20

So,

R> axis(1, (0:4)*5)
or
R> axis(1, c(0,5, 10, 15, 20))
or
R> axis(1, seq(0,20, by=5))

it's up to you. There are probably other solutions as well
You're welcome

Romain