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