s-news
[Top] [All Lists]

Re: Rotating axis labels in post script graphic device

To: "'Prof Brian Ripley'" <ripley@stats.ox.ac.uk>
Subject: Re: Rotating axis labels in post script graphic device
From: "Kleijn, H.J. (Huub Jan)" <huubjan.kleijn@organon.com>
Date: Fri, 30 Jan 2004 12:12:22 +0100
Cc: s-news <s-news@wubios.wustl.edu>
Indeed I'm using the axis statement with the at option (see below). In this
case las(=0) does not work. I want to use the at option with the labels
because these should reflect the values of a second parameter which is
included in the plot.

axis(side=4,at=c(0,1000*(max2/max1),2000*(max2/max1),3000*(max2/max1),4000*(
max2/max1)),
            labels=c("0","1000","2000","3000","4000"),
            ticks=F, col=5, cex=0.5, las=0)

-----Original Message-----
From: Prof Brian Ripley [mailto:ripley@stats.ox.ac.uk] 
Sent: Friday, 30 January, 2004 11:52
To: Kleijn, H.J. (Huub Jan)
Cc: s-news
Subject: Re: [S] Rotating axis labels in post script graphic device


On Fri, 30 Jan 2004, Kleijn, H.J. (Huub Jan) wrote:

> Dear All,
> I would like to add an axis to the right side of mij graph which is 
> outputed as a postscript file. The srt option to counterclockwise a 
> string does not work because the postscript device ignores it. Anyone 
> with a solution out there?

I presume you are using axis.  Its documentation says

  If at is not given, then axis uses the the following procedure to place
  the tick mark labels. axis rotates the tick mark labels to be parallel to
  the axes if the graphical parameter las is 0, horizontal if las is 1, and
  perpendicular to the axes if las is 2. (This overrides the current value
  of the graphical parameter srt .)

So I suspect you want to use las, unless you did give `at'.

I am not aware of any difference due to the use of postscript(), but 
there are different versions of that in different versions of S-PLUS so we 
would need more details.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595
--------------------------------------------------------------------
This message, including attached files, may contain confidential
information and is intended only for the use by the individual
and/or the entity to which it is addressed. Any unauthorized use,
dissemination of, or copying of the information contained herein is
not allowed and may lead to irreparable harm and damage for which
you may be held liable. If you receive this message in error or if
it is intended for someone else please notify the sender by
returning this e-mail immediately and delete the message.
--------------------------------------------------------------------

<Prev in Thread] Current Thread [Next in Thread>