[R] Aligning axis values when plotting more than one graph on same axes

Steve Murray smurray444 at hotmail.com
Mon Jun 15 23:02:43 CEST 2009


Thanks for the replies.

This is a simple example which demonstrates exactly the problems I'm facing. As you can see, neither the x or y axes line up consistantly.

> barplot(1:12, names.arg=substr(month.abb, 1,1))
> par(new=TRUE)
> plot(1:12, 1:12, type="b", lwd=2, col="red", xaxt="n")


I'd be surprised if there isn't a solution to this, seeing as they're two essential graph types in the base package?

Any pointers would be most welcome!

Thanks again,

Steve


_________________________________________________________________
[[elided Hotmail spam]]




More information about the R-help mailing list