[R] Trying to get xlim to do what I want

Prof Brian D Ripley ripley at stats.ox.ac.uk
Wed May 17 13:24:57 CEST 2000


On Wed, 17 May 2000, Anon. wrote:

> I'm trying to draw a plot with both the x and y axes starting at zero.
> However, even with xlim and ylim specified (e.g.
> plot(x,y,ylim=c(0,800),xlim=c(0,2000)) ), the axes still start just
> below zero.  The lowest x and y values are sufficiently higher than 0 so
> that having symbols overlapping isn't a problem.  How does one force R
> to do exactly what you want?

xaxs="i", yaxs="i"

See ?par for an explanation.


-- 
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