Skip to content

PAR(las)

2 messages · Martin Maechler, Peter Dalgaard

#
On Tue, 12 Jan 1999, Troels Ring wrote:
>> Dear friends. In the documentation for PAR it is specified that "las"
    >> allowing turning axis labels away from default=parallel to axis is not
    >> implemented. I need to make graphs with horizontal Y axis labels - how
    >> to ?  I'm using win98.  Thank you in advance.  Sincerely yours

As others have said,  par(las = <n>) has been implemented in the mean time,
and the implementer has forgotten to update the documentation.

I've corrected it, and (in the doc source par.Rd) it looks like

  \item{las}{numeric in \{0,1,2\}; the style of axis labels.
    0 = always parallel to the axis [\emph{default}],
    1 = always horizontal,
    2 = always perpendicular to the axis.}

which is S compatible.
However, in principle there is one case missing :

    3 = always vertical

(it can almost be constructed by using las=1 and "manually" turn the plot
 by  90 degrees...).

Can anyone think of a situation where one would want this?

Martin Maechler <maechler at stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum SOL G1;	Sonneggstr.33
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1086			<><

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Martin Maechler <maechler at stat.math.ethz.ch> writes:
Yes. There's a barplot of aviation accidents by profession in Altmans
textbook which I have had trouble getting to look right in R, for
instance:

barplot(cbind(prof.pilots=16,lawyers=11,farmers=10,
salesmen=9,physicians=9,mechanics=6,policemen=6,managers=6,
engineers=5,teachers=4,housewives=3,students=3,armed.forces=1))

(actually, apart from the spacing bug, this looks fairly OK with
las=2, but you might want the y labels along the axis when the heights
are bigger numbers)