[R] does xaxt="n" work

Martin Maechler maechler at stat.math.ethz.ch
Fri Mar 24 18:29:03 CET 2000

>>>>> "Helgi" == Helgi Tomasson <helgito at rhi.hi.is> writes:

    Helgi> I recently downloaded an rpm for suse-linux of R-1.0 for suse 6.3.
    Helgi> There

  Helgi> plot(tx,spax,type='l',ylim=range(ytx),ylab="",xlab="",xaxt="n",yaxt="n")

    Helgi> does not seem to supress printing on the axis.  The same statement
    Helgi> seemed to work well in R-0.9 on a redhat 5.2 (compiled by myself).
    Helgi> Has anyone had the same experience?

Yes, this is a bug in 1.0.0 which has been reported 
and has been fixed for the patch release "R-release" quite a while ago
(The "R-release" daily snapshot is available from CRAN
 and will become 1.0.1 some time).

Opinions may differ here, but IMHO, this is the worst bug
(that we know of ...) in R 1.0.0.

Anyway, the workaround is simple (but ugly):

Instead of

	plot(.... , xaxt = "n")

	op <- par(xaxt = "n")

{{and of course the same applies to  yaxt}}.

Martin Maechler <maechler at stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO D10	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list