[Rd] adjustment of expressions with mtext(..., las=2) (PR#823)
ligges@statistik.uni-dortmund.de
ligges@statistik.uni-dortmund.de
Wed, 24 Jan 2001 20:12:49 +0100 (MET)
[Subject renamed for bug report]
Don Wingate wrote:
[...]
> For example:
>
> math.names.text <- c("x1^2", "x2^2", "x2%*%x3) # in actual use,
> dynamically created.
> math.expressions <- parse(text=math.names.text)
> dotplot(1:3, labels=math.expressions)
[...]
> By the way, I notice that when using math expressions as the labels in
> dotplot, the positioning of the labels is off to the right (and off the
> visible screen). Is this a bug in the way that the size of the math
> expressions are computed?
Yes, it looks like a bug. I try to simplify it:
When using mtext(..., las=2, adj=anything), the argument adj doesn't
seem to have any effect:
plot(1:10)
mtext("x^2 + x^3", side = 2, las=2, at=3, line=3, adj=0) # works fine
...
# but here it is not left justified at line=3:
mtext(expression(x^2 + x^3), side = 2, las=2, at=7, line=3, adj=0)
Uwe Ligges
--please do not edit the information below--
Version:
platform = i386-pc-mingw32
arch = x86
os = Win32
system = x86, Win32
status =
major = 1
minor = 2.1
year = 2001
month = 01
day = 15
language = R
Windows NT 4.0 (build 1381) Service Pack 6
Search Path:
.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: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._