[R] par(xaxp)

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Tue Jun 4 22:00:56 CEST 2002

On Tue, 4 Jun 2002 Setzer.Woodrow at epamail.epa.gov wrote:

> I think this is a bug; at least this behavior is not documented in plot
> or plot.default.

See the definition of a bug in the FAQ.

> plot.default resets xaxp, and leaves xaxp reset when it exits:
> par(xaxp=c(0,1,4))
> print(par("xaxp"))
> plot(c(0,1),c(0.2,0.3))
> print(par("xaxp"))

xaxp is defined as

     `xaxp' A vector of the form `c(x1, x2, n)' giving the coordinates
          of the extreme tick marks and the number of intervals between

so it is redefined whenever axes are drawn. Many of the graphics par's are
reset when a plot is drawn.  par("usr") is another one.

I don't see why you expected otherwise (and in particular why you expected
this to be documented under plot.default).

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

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