[R] manipulating axis labels in grid and lattice

Paul Murrell p.murrell at auckland.ac.nz
Wed Jul 3 02:26:36 CEST 2002


> I am trying to use wireframe at the moment and the axis labels are
> overlapping with the tick labels.  It seems that gpar does not yet
> utilize the mgp argument.  Is there anyway to manipulate the position of
> the axis labels?

A brief digression ...

<design goal>
Graphics parameters specified via gpar() in grid and lattice are meant
to be general-purpose graphics parameters that are relevant to the
appearance of basic graphical primitives (such as lines, text, ...). 
Higher-level parameters, such as mgp, are only relevant to specific
high-level graphical objects, such as plots, and should therefore only
be specified in the creation/modification of the relevant high-level
</design goal>

For this reason, mgp and many other par() parameters will never appear
in gpar().

Now for some information that may actually be useful ... :)

You might be able to use the "scales" argument of wireframe, in
particular something like scales=list(distance=1.5).  This positioning
looks a little bit rough;  I have cc'ed Deepayan in case he can suggest
a better solution.

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