[R] plot() axis problem
Prof Brian Ripley
ripley at stats.ox.ac.uk
Mon Jul 23 14:42:03 CEST 2001
On Mon, 23 Jul 2001, Bill Simpson wrote:
> >
> > The example uses a rather artificial dataset, neatly divided into
> > monotonically increasing low and high values. Any permutation of those
> > values that did not fall into that pattern would render the question
> > meaningless. For example, try
> The example I posted was artificial because my real example had 10,000
> pts and I didn't want to post that. Basically I wanted to look at the
> region surrounding one frequency of the spectrum where I expected a peak.
> I couldn't see the peak because plot() had used the whole set of data to
> pick the range for the y-axis.
>
> There was of course a nice peak but it was invisible because this peak was
> maybe 1/1000 as high as the maximum peak in the whole spectrum.
>
> >
> > I think the present behavior of plot() is pretty sensible.
> If you look around at other plotting programs out there I think you'll see
> some doing what I propose. I think if you use small datasets the current
> plot() behaviour will not cause problems. It's only a pain once you start
> zooming in on small stretches.
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).
You can of course set ylim as well as xlim ....
--
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