Re: [R] missed ylim from plot.default

From: Peter Ehlers <>
Date: Fri 26 May 2006 - 08:06:29 EST

Antonio, Fabio Di Narzo wrote:

> Hi all.
> On my R-2.3.0, calling:

>>plot(1:5, rep(1,5), xlim=c(-0.5,7), ylim=c(-0.5,2.8), asp=1)

> gives to me a plot (tried pdf and X11) whose y axis goes from about -2 to
> about 4.5. What I've missed? How can I show some pre-specified x and y
> ranges from a plot (keeping fixed the aspect ratio)?
> Tnx all,
> Antonio, Fabio Di Narzo.
> [[alternative HTML version deleted]]

Do you want a wide, but not very tall plot? If so, you could specify the width/height in your X11() call.

Peter Ehlers mailing list PLEASE do read the posting guide! Received on Fri May 26 08:13:48 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 26 May 2006 - 18:10:25 EST.

Mailing list information is available at Please read the posting guide before posting to the list.