[R] manipulating axis labels in grid and lattice

Daniel Mastropietro mastropi at uwalumni.com
Tue Jul 2 15:19:22 CEST 2002


When I used my own axis labels in a plot I used the mtext() function with 
option 'adj' to specify the distance from the axis, and 'las' to specify 
the orientation. An example is the following:

mtext(labels , side=1 , at=1:3 , las=3 , adj=2 , cex=0.7);

Number 3 in 'las' means "labels perpendicular to the axis". Number 2 in 
'adj' needs not be an integer, and it was set by trial and error.

I hope this helps.

At 03:56 PM 1/7/2002 -0700, Carlo C. Maley wrote:
>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?
>
>The best I can manage so far is to manipulate the cex so as to shrink 
>everything down.
>
>thanks, Carlo Maley
>
>--
>Dr. Carlo C. Maley
>Staff Scientist
>Fred Hutchinson Cancer Research Center
>1100 Fairview Ave. N. C1-157
>Seattle, WA 98109
>
>phone: 206-667-4615
>fax: 206-667-6132
>cell: 206-355-7425
>
>http://www.fhcrc.org/science/phs/barretts/cmaley/
>
>

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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