Re: [R] question on axis box with asp=1

2007-10-23 Thread Dan Kelley
I'm sorry that I didn't mention about using filled.contour(). The advice about using pin (and, in this case, modifying filled.contour) is just what I needed. Thanks very much. (I got sidetracked on the stretchable margin space idea partly because I've been doing lots of tex lately, and I've

Re: [R] question on axis box with asp=1

2007-10-23 Thread Prof Brian Ripley
You need to take control. The box is plotted by box(), and that boxes the plot region as set up by plot.window() and given by par("pin"). So try setting that early in your plot sequence. E.g. open a window and do par(pin=c(4,6)) plot commands This is one of the non-introductory things c

Re: [R] question on axis box with asp=1

2007-10-23 Thread Dan Kelley
Thanks very much for the reply. Probably my example was poor. In my real application, I have an 8Mb data file of ocean properties, that I didn't want to attach. Plus -- and I should have noted this -- I am using coloured filled contours, so there is a colour bar at the right which uses up

Re: [R] question on axis box with asp=1

2007-10-23 Thread Uwe Ligges
Why don't you create a device that is approximately squared if you ask to have asp=1? I do not understand why you resize anything. It simply does not make sense in that case. Uwe Ligges Dan Kelley wrote: > I've been using (and loving) R for quite a while now, but I have to > admit that som

[R] question on axis box with asp=1

2007-10-22 Thread Dan Kelley
I've been using (and loving) R for quite a while now, but I have to admit that something simple is still stumping me. The question is how I can control the box within which a plot is drawn, in cases where I'm controlling the aspect ratio with the "asp" argument. The problem comes up in pdf(