[R] adj parameter in mtext

Martin Maechler maechler at stat.math.ethz.ch
Tue Aug 22 14:57:21 CEST 2000


>>>>> "R" == R E Darnell <r.e.darnell at ncl.ac.uk> writes:

    R> I am trying to adjust the sigma symbol down in the y direction with
    R> the following command but R recycles the sigma and puts another at
    R> -0.1 in the x axis.

    R> Any suggestions would be appreciated.

    R> mtext(expression(sigma),1,outer=TRUE,adj=c(0.5,-0.1))

?mtext shows you that  "adj" really only uses one number, i.e., in your
case 0.5 = the default ...
		       [one could argue it should give a warning in your case..]

I don't see any problem;
here is some illuminating code :

  eval(ex <- quote(par(oma=c(3,3,.2,.2))))
  plot(1); mtext(deparse(ex))
  box("inner", lty="dashed", col = "light blue")
  for(a in seq(-.1,1.1,by=.1)) {
      mtext(expression(sigma),1,        outer=TRUE, adj= a)
      mtext(format(a),        1,line=1, outer=TRUE, adj= a)
  }


Martin Maechler <maechler at stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO D10	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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