[R] using axis with newline characters

andreas.krause@pharma.novartis.com andreas.krause at pharma.novartis.com
Tue May 21 17:21:38 CEST 2002

Wondering if I missed anything or if that's a problem with R:
I want to have many x axis tickmarks and labels such that it makes sense to put them on multiple "lines".
The newline character seems to be ignored though for axis labels:

plot(1:33, axes=F)
axis(1, 9, 9)
axis(1, 11, "\n11")

# whereas

works as I expect it to work.
In addition there is a little hook on top of the tickmark (the upper end of the vertical dash) that seems to be unintended.

Best regards,

      Andreas Krause

PS. R version 1.4.1 on Red Hat Linux.

PPS. One way to do what I want to achieve is to use axis with the line parameter, but this requires breaking up the labels.

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list