mtext() alignment of perpendicular text (PR#1659)
Wed, 12 Jun 2002 03:30:32 +0200 (MET DST)
mtext() does a poor job of placing text when it is perpendicular (e.g.,
side=1, las=3) and the font size is not the default.
The following code snippet demonstrates the problem ...
axis(3, at=1:10, las=3, labels=FALSE)
mtext(1:10, at=1:10, side=3, line=1, las=3)
axis(3, line=-2, at=1:10, las=3, labels=FALSE)
mtext(1:10, at=1:10, side=3, line=-1, las=3, cex=.5)
axis(3, line=-5, at=1:10, las=3, labels=FALSE)
mtext(1:10, at=1:10, side=3, line=-4, las=3, cex=2)
The ugliness varies a bit across devices.
In GMtext() in graphics.c there is a hardcoded adjustment of 0.3 which
is described as "purely visual tuning". I think this needs to be
replaced with a more general solution.
--please do not edit the information below--
platform = sparc-sun-solaris2.7
arch = sparc
os = solaris2.7
system = sparc, solaris2.7
status = Under development (unstable)
major = 1
minor = 6.0
year = 2002
month = 06
day = 10
language = R
.GlobalEnv, package:ctest, Autoloads, package:base
r-devel 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: email@example.com