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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Daniel Mastropietro
2002-Jul-02 13:19 UTC
[R] manipulating axis labels in grid and lattice
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hi> 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 object. </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. Paul -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> Using <br> scales=list(distance=c(1.5, 1.5, 1))<br> worked, but only when distance was an array with a value for each axis.<br> <br> thanks, Carlo<br> <br> Paul Murrell wrote:<br> <blockquote type="cite" cite="mid3D2244BC.BFD14996@stat.auckland.ac.nz"> <pre wrap="">Hi </pre> <blockquote type="cite"> <pre wrap="">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? </pre> </blockquote> <pre wrap=""><!----> 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 object. </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. Paul </pre> </blockquote> <br> <pre class="moz-signature" cols="$mailwrapcol">-- 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 <a class="moz-txt-link-freetext" href="http://www.fhcrc.org/science/phs/barretts/cmaley/">http://www.fhcrc.org/science/phs/barretts/cmaley/</a> </pre> <br> </body> </html> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._