Re: [R] setting xlim and ylim with asp=1

2003-08-25 Thread Prof Brian Ripley
On Mon, 25 Aug 2003, Angel wrote: > Thanks for the advise. Sorry, I should have explained better. > As you say xlim and ylim have an effect. But when they do not match the > width and height of the plot region , one of them is modified in order to > make the plot fill the whole plot region with th

Re: [R] setting xlim and ylim with asp=1

2003-08-25 Thread Angel
in")[1] height<-par("pin")[2] if (height>width/xyratio) height=width/xyratio else if(height To: "Angel" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, August 25, 2003 1:31 PM Subject: Re: [R] setting xlim and ylim with asp=1 > On Mon, 25 Aug

Re: [R] setting xlim and ylim with asp=1

2003-08-25 Thread Prof Brian Ripley
On Mon, 25 Aug 2003, Angel wrote: > In plot(), when using option asp=1 the xlim and ylim have no effect because > they are changed > changed in order to fill the whole plot region. Not true: try xlim=c(-2,2) in your example. > Is there a way to > automatically set > xlim and ylim when asp has b

[R] setting xlim and ylim with asp=1

2003-08-25 Thread Angel
In plot(), when using option asp=1 the xlim and ylim have no effect because they are changed changed in order to fill the whole plot region. Is there a way to automatically set xlim and ylim when asp has been set to 1? For example: #This is a box of the plot ranges I want: boxxy=rbind(c(-1,2),c(-1,