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 <news at jonasstein.de>
Jonas Stein wrote:> 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?This has always been documented in ?par: plot(1:10, las=1) Uwe Ligges> > Thank you very much for reading and hints, >
Hi, What you want is done with argument srt of par function. See ?par and then look for srt argument. Regards 2009/3/26 Jonas Stein <news@jonasstein.de>> 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 <news@jonasstein.de> > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
Usuario R <r.user.spain <at> gmail.com> writes:> > Hi, > > What you want is done with argument srt of par function. See ?par and then > look for srt argument. > > Regards >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