[R] move axis label text

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Jul 11 08:21:42 CEST 2006


On Mon, 10 Jul 2006, ivo welch wrote:

> dear R wizards:  sorry, I am stumped.  what is the parameter to just
> move the location of the x-label and y-lable (not the labels on the
> ticks of the x-axis and y-axis)?  probably obvious, but not to me
> right now... regards,  /iaw

They are all done by par(mgp):  ?title does say so.

     'mgp' The margin line (in 'mex' units) for the axis title, axis
          labels and axis line. The default is 'c(3, 1, 0)'.


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list