Re: [R] text() and vector arguments like adj

2007-07-30 Thread Prof Brian Ripley
On Sat, 28 Jul 2007, [EMAIL PROTECTED] wrote:

> Hello,
>
> I remarked that the function
> ## Default S3 method:
> text (x, y = NULL, labels = seq(along = x), adj = NULL,pos = NULL, offset = 
> 0.5, vfont = NULL,cex = 1, col = NULL, font = NULL, ...)
>
> accepts vectors of arguments (of the same length) except for the 
> parameter adj.

Not true, e.g. for vfont.

> When passing a vector of information for adjusting the labels, only the 
> first value is taken.

You mean supplying a vector value of length > 1 for 'adj', I guess.

> Any special reason for this ?

Yes, please DO read the help page:

  adj: one or two values in [0,1] which specify the x (and
   optionally y) adjustment of the labels.  On most devices
   values outside that interval will also work.

Note, 'one or two'.

> btw: could a rotating argument like the 'srt' argument in mtext() be 
> incorporated ?

Yes, *parameter* 'srt' works exactly as in mtext: see the '...' part of 
the help page.

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
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, UKFax:  +44 1865 272595

__
R-help@stat.math.ethz.ch 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.


[R] text() and vector arguments like adj

2007-07-30 Thread strinz
Hello,

I remarked that the function
## Default S3 method:
text (x, y = NULL, labels = seq(along = x), adj = NULL,pos = NULL, offset = 
0.5, vfont = NULL,cex = 1, col = NULL, font = NULL, ...)

accepts vectors of arguments (of the same length) except for the parameter adj.
When passing a vector of information for adjusting the labels, only the first 
value
is taken.  

Any special reason for this ?

btw: could a rotating argument like the 'srt' argument in mtext() be 
incorporated ?

best
Bjoern

__
R-help@stat.math.ethz.ch 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.