[R] using text on the x axis ticks rather than numbers

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Sep 7 23:33:46 CEST 2004


On Tue, 7 Sep 2004, Adaikalavan Ramasamy wrote:

> Out of curiosity, why is srt not respected in mtext ? See examples below

It doesn't make a lot of sense.  mtext is about putting text on >m<argin
lines, and even the ability to have text perpendicular to the axis (via
las) is rather awkward to interpret (and the interpretation will be
changed in 2.0.0).  If you are going to rotate text you need to able to
specify a point of rotation and that's much easier via text.

> It would be nice to have 'srt' as an argument in mtext in future.

You haven't been listening to the discussions pre-2.0.0 on the semantics
of `adj' (and now padj as well) in mtext.  Experts seem to find it hard to
keep even the two current cases (parallel and perpendicular) clear in
their minds.

BTW, if you want to use srt with mtext(at=) you can always use S ....

-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list