[R] How can I fit the secondary y axis legend on my graph?

2006-09-03 Thread Chris Grobler
Dear All, Having a bit of trouble with plotting two y variables on the same graph. I cannot manage to get the secondary y axis label on to the right of the axis - it gets plotted beyond the graphic window I assume?! The way I constructed the graph is thus: plot(data[,3],data[,2],axes=F,

Re: [R] How can I fit the secondary y axis legend on my graph?

2006-09-03 Thread Prof Brian Ripley
?par, specifically mar and mai, xaxt and yaxt. Note that there are my default on 2.1 lines in the right margin and 4.1 in the left one. You should find the description in 'An Introduction to R' helpful. On Sun, 3 Sep 2006, Chris Grobler wrote: Dear All, Having a bit of trouble with

Re: [R] How can I fit the secondary y axis legend on my graph?

2006-09-03 Thread Jeff Bricker
I suspect you may need to tweak your margins. See the mar argument to the par command for guidance. Something like par(mar=c(5,4,4,4)) should probably get you started, though. On 9/3/06, Chris Grobler [EMAIL PROTECTED] wrote: Dear All, Having a bit of trouble with plotting two y variables

Re: [R] How can I fit the secondary y axis legend on my graph?

2006-09-03 Thread hadley wickham
Having a bit of trouble with plotting two y variables on the same graph. I cannot manage to get the secondary y axis label on to the right of the axis - it gets plotted beyond the graphic window I assume?! The way I constructed the graph is thus: Chris, I would strongly suggest you find a

Re: [R] How can I fit the secondary y axis legend on my graph?

2006-09-03 Thread Gabor Grothendieck
There is an example here: http://zoonek2.free.fr/UNIX/48_R/04.html#1.2 (Scroll down until you see the graphic with the two y axes. The code is in the box just above it.) On 9/3/06, Chris Grobler [EMAIL PROTECTED] wrote: Dear All, Having a bit of trouble with plotting two y variables on