Skip to content

How to rotate axis labels? 2009

4 messages · Jonas Stein, Uwe Ligges, Usuario R +1 more

#
Hi,

while searching for a solution i found many solutions in the internet.
But the postings seemed to be many years old and the workaround was a
dirty hack like this:

http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-create-rotated-axis-labels_003f

Now its the year 2009 and there might have been some improvement...
Does anyone know a nice and easy way to turn labels on the y axis in the
same direction as the x labels?

Thank you very much for reading and hints,
#
Jonas Stein wrote:
This has always been documented in ?par:

plot(1:10, las=1)


Uwe Ligges
#
Usuario R <r.user.spain <at> gmail.com> writes:
To clarify: if you just want labels rotated parallel/perpendicular
to axes, then par("las") will do everything you need.  If you need
arbitrary rotation (e.g. 45 degrees), then as far as I know the
hack in the FAQ is still the appropriate solution.   

  Ben Bolker