[R] rotate bar labels in barplot()
PAlspach at hortresearch.co.nz
Thu Apr 3 02:38:26 CEST 2008
The las argument will allow rotation of 90 degrees:
barplot(1:10, names=letters[1:10], las=0)
barplot(1:10, names=letters[1:10], las=1)
barplot(1:10, names=letters[1:10], las=2)
barplot(1:10, names=letters[1:10], las=3)
If you want to do other rotation angles then it will be more complicated (but not much).
> -----Original Message-----
> From: r-help-bounces at r-project.org
> [mailto:r-help-bounces at r-project.org] On Behalf Of [Ricardo
> Rodriguez] Your XEN ICT Team
> Sent: Thursday, 3 April 2008 12:48 p.m.
> To: r-help at r-project.org
> Subject: [R] rotate bar labels in barplot()
> Hi all,
> It is for sure that I could find more powerful packages to
> plot my data, but this simple barplot() was doing well so far.
> My problem now is that I would need to rotate bar labels.
> Please, is this possible without going to use axis()?
> I am trying to keep the workflow as simple as possible to
> bring people of our team into R!
> Ricardo Rodríguez
> Your XEN ICT Team
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
The contents of this e-mail are privileged and/or confidential to the named
recipient and are not to be used by any other person and/or organisation.
If you have received this e-mail in error, please notify the sender and delete
all material pertaining to this e-mail.
More information about the R-help