Skip to content
Prev 175574 / 398502 Next

How to specify axis interval unit...

On 3/31/2009 5:08 AM, V Prasanth wrote:
You can set axes=FALSE, names="" and then use whatever axes you like. 
Modifying the first example in examples(barplot):

tN <- table(Ni <- stats::rpois(100, lambda=5))
r <- barplot(tN, col=rainbow(20), axes=F, names="")
axis(2, at=2^(0:5))
axis(1, at=r, labels=letters[1:length(tN)])

Duncan Murdoch