Re: [R] Setting where the x-axis crosses the y-axis

From: Richard M. Heiberger <>
Date: Sat 07 Apr 2007 - 03:50:40 GMT

I think you are looking for this

tmp <- abs(rnorm(100, s=8))
ltmp <- log(tmp)
plot(ltmp, type="h", yaxt="n", main="what you want") exp(par("usr")[3:4])
logticks <- axTicks(2, axp=c(10^c(-1,3),3), log=TRUE) axis(2, at=log(logticks), labels=logticks) plot(tmp, type="h", log="y", main="standard") mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Sat Apr 07 13:55:31 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 07 Apr 2007 - 05:31:07 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.