[R] cex= and plot(), title(), mtext()
Peter Perkins
pperkins at ucsd.edu
Thu Feb 22 09:21:15 CET 2001
using R 1.2.1 under LinuxPPC, using the default X11 graphics device, i
can't get the cex= argument for plot() and title() to have any effect.
works for text(), though. the text size for plot() and title() _is_
correct if par(cex=size) is called first. oddly, mtext() seems to pay
attention to cex=, but to ignore the value set by par().
for example,
> plot(1:5, 1:5, main="Main", cex=2) # plots title/labels in std size
> mtext("mtext", side=1, at=1.5, line=1, cex=2) # large text here
>
> par(cex=2)
> plot(1:5, 1:5, main="Main") # large text now
> mtext("mtext", side=1, at=1.5, line=1) # but std size here
i don't find this problem in the either the archives or the bug list,
but i can't really believe that it's a bug and no one else has seen it
yet. so perhaps i'm speaking R with an S accent? or doing something
else stupid? help?
- peter
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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