[R] using axis with newline characters
Ott Toomet
siim at obs.ee
Wed May 22 11:55:15 CEST 2002
Hi,
On Tue, 21 May 2002 andreas.krause at pharma.novartis.com wrote:
|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")
|axis(1)
Use par(mgp). Example:
> plot(1:33)
> par(mgp=c(3,2,0))
> axis(1,9,9)
Was it what you wanted?
Cheers,
Ott
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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