On Mon, 20 Oct 2008, Thomas Steiner wrote:
Brian, thank you for your reply.
Why do you expect this to be vectorized when the help page clearly says
otherwise?
Sure, it's in line with the help, no problem there. I just asked if
this feature is somehow possible.
I expected it, because "pos" do
Thomas Steiner wrote:
NB: library(fortunes); fortune("WTFM") applies.
This one I didn't get. They help to do it without a loop?
No.
> library(fortunes); fortune("WTFM")
This is all documented in TFM. Those who WTFM don't want to have to WTFM
again
on the mailing list. RTFM.
-- Barry R
Brian, thank you for your reply.
> Why do you expect this to be vectorized when the help page clearly says
> otherwise?
Sure, it's in line with the help, no problem there. I just asked if
this feature is somehow possible.
I expected it, because "pos" does take arrays and it "overrides any
adj val
Why do you expect this to be vectorized when the help page clearly says
otherwise? See
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.
What is wrong with two
...and the offset argument can't handle arrays either:
text(c(0,0),c(0,0),c("a","b"),pos=c(1,2),offset=c(1,0.5),col="darkgreen")
The second argument does not have any effect.
Can I pass arrays to text and use diffent locations?
Thomas
PS: I use R version 2.5.0 (2007-04-23) under Win2000.
__
Hi,
text()'s pos does handle more dimensional labels, while adj does not -
or how can I pass an array to text() and use the adj argument (skyblue
text)?
plot(-1:1,-1:1)
text(c(0,0),c(0,0),c("a","b"),pos=c(1,2),col="red")
text(c(0,0),c(0,0),c("a","b"),adj=cbind(c(1,2),c(1,1)),col="skyblue")
Thoma
6 matches
Mail list logo