[R] missed ylim from plot.default

Peter Ehlers ehlers at math.ucalgary.ca
Fri May 26 00:06:29 CEST 2006


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



More information about the R-help mailing list