[R] graphics ignore tabs in text
Liaw, Andy
andy_liaw at merck.com
Tue Oct 31 15:13:40 CET 2006
Dear R-help,
I seem to recall that I can use "\t" to get tab in a string on a
graphics device, but it doesn't seem to work. Try:
lab <- "a\tb\tc"
cat(lab, "\n") # works in the console output
plot(1:5, main=lab) # no tabs in the title
text(3, 3, lab) # no tabs in the text
I get the same result both in the windows() and pdf() devices. Any
ideas?
This is R-patched Windows binary just downloaded from CRAN.
R version 2.4.0 Patched (2006-10-29 r39744)
Best,
Andy
Andy Liaw, PhD
Biometrics Research PO Box 2000 RY33-300
Merck Research Labs Rahway, NJ 07065
andy_liaw(a)merck.com 732-594-0820
------------------------------------------------------------------------------
Notice: This e-mail message, together with any attachments,...{{dropped}}
More information about the R-help
mailing list