[R] axis label rotation

Patrick Connolly P.Connolly at hortresearch.co.nz
Mon Dec 4 21:10:37 CET 2000


According to Paul Murrell:
|> 
|> Hi
|> 
|> 
|> > I recently switch over from Splus to R and I have not been able to
|> > generate right axis labels that face inwards.  This is accomplished
|> > in Splus with the command srt=270 but this option is not supported
|> > in R.  In addition the par argument las=0 or 3 does not rotate the
|> > right axis labels.
|> 
|> 
|> Unfortunately, R's axis() and mtext() functions only listen to par(las) to

Perhaps that's because those who did that part of the development were
familiar with standard drafting conventions which invite the reader to
read text from the bottom or the right.  Reading text from the left
which one would have to do to read a plot with a label rotated 270
degrees is unnecessarily complicated for the reader.

Perhaps if you're using R to design a board game it could be
different.....


|> > The editor of a journal is demanding that the right axis labels face
|> > inwards in the figures I recently submitted.  I am really at a loss
|> > because these editors are inflexible with respect to their in-house
|> > journal styles.
|> 
|> 
|> This is not pretty, but if I have understood correctly it should do what you

Nor is the result it achieves.


|> coordinate system.  As I said, it is not pretty :)
|> 
|> Paul

What can be done, though, if you're stuck with an intransigent editor,
is to edit the postscript file; find the part that has your right axis
label and change the last number in the group of 4 which follow the
text from 90 to 270.  That's the srt bit.

Not pretty, but sometimes one has to do ugly things.... :-(

best

-- 
*************************************************************
Patrick Connolly
HortResearch        
Mt Albert               It's better to do nothing than to waste time
Auckland                                      ..... Viktoras Kulvinskas
New Zealand                          
Ph: +64-9 815 4200 x 7188
*************************************************************
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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