Skip to content
Prev 140941 / 398498 Next

rotate bar labels in barplot()

Ricardo

The las argument will allow rotation of 90 degrees:

par(mfrow=c(2,2))
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).

HTH ....


Peter Alspach
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.