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