If by 'position' you mean the distance from the axes, I think 'mgp' is the
argument you are looking for (see ?par)-
You can set this in par(), plot() [which will affect both x and y labels], or
title():
par(mar=rep(6,4))
plot(NA,NA,xlim=0:1,ylim=0:1,xlab="X",ylab="")
title(ylab="Y2",mgp=c(4,1,0))
Thanks (Merci) Christophe!
that did it
--- Christophe Bonenfant
<[EMAIL PROTECTED]> wrote:
> Hi Etienne - consider to use the mtext function:
>
> > par(mar=c(5.1,5.1,4.1,2.1))
> >
>
plot(c(1979,2003),c(40,50),ylim=c(1,73),lab=c(20,10,1),
>
pch=21,col='blue',bg='blue',axes=FALSE,xlab="",ylab="
How can I change the position of the ylab, after
enlarging the margins with par(mar=...)?
Here is the relevant code snippet
par(mar=c(5.1,5.1,4.1,2.1))
plot(c(1979,2003),c(40,50),ylim=c(1,73),lab=c(20,10,1),pch=21,col='blue',bg='blue',axes=FALSE,xlab="Years",ylab="Onset/Withdrawl
Date",font