[R] plot() axis problem

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Jul 23 15:02:08 CEST 2001

On Mon, 23 Jul 2001, Bill Simpson wrote:

> >
> > Oh, come on, many of us use *much* larger datasets.  Your problem is that
> > you are using xlim to zoom in, rather that subsetting the spectrum
> > object as the S language design intends (but the writer of plot.spec did
> > not anticpate).
> OK Brian and Peter point taken that S/R prefers that I do
> plot(x[x>=1 & x<=10],y[x>=1 & x<=10])
> rather than
> plot(x,y,xlim=xrange)
> Thanks for the replies.
> (I am using my own spectrum routines)
> > You can of course set ylim as well as xlim ....
> Yes that's what I said in my original posting.

(Too many days ago for me to have at hand.)   My point was that if you
want to `zoom in' then it seems logical to have to specify the zoom in
both x and y directions, not expect the x zoom to choose a y zoom.

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