You can use par(mgp=c(...)) to change where the axis labels are placed by 
default, but this affects both the x and y axis.  Another alternative is to not 
plot the x axis label (xlab=''), then use the title or mtext function you can 
manually place the axis label where you want it.  Also look at the 'mar' 
section of the help on par for the way to increase the area in the margin.

Hope this helps,

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
[email protected]
801.408.8111


> -----Original Message-----
> From: [email protected] [mailto:r-help-boun...@r-
> project.org] On Behalf Of JS Walker
> Sent: Tuesday, July 28, 2009 10:35 AM
> To: [email protected]
> Subject: [R] Moving axis-labels
> 
> Hi,
> 
> This is hopefully quite a straightforward quandary. I have made a
> simple R
> plot but the values on my x-axis are sufficiently large enough that
> they
> interfere my x-axis label. How can I shunt the x-axis label further
> away
> from the x-axis?
> 
> Thanks
> 
> Jim
> 
> ----------------------
> JS Walker
> [email protected]
> 
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to