0
bar33x<- barplot2(pHI, beside=T,width= c(0.1,0.1,0.1), col = c("black", "grey"), ylim = c(0,10),las = 1, xlab = "Site code ", 
                  cex.names=0.7, cex.lab=0.9, cex.axis=0.8,
                  names.arg = c( "R01", "R02", "R04", "R10", "R12", "R13", "R15", "R16","R03", "R05", "R7", "R11", "R14"),
                  space=c(0,0,0.3,0,0.3,0,0.3,0,0.3,0,0.3,0,0.3,0,0.3,0,3,0, 0.3,0,0.3,0,0.3,0,0.3,0))
abline(h=0, lty = 1, lwd = 0.5)
mtext(expression ("pH"), side = 2, line = 2, cex=0.8)

Hello, I have kept names.arg in x-labels but I want to rotate them, How is it possible to rotate x-axis names.arg labels?

Stack Danny
  • 7,754
  • 2
  • 26
  • 55
  • 2
    Maybe this helps: https://stackoverflow.com/questions/10286473/rotating-x-axis-labels-in-r-for-barplot, set parameter "las" to 2 – tanktoo Feb 22 '19 at 10:42
  • Hi, welcome to *Stack Overflow*, in order that we can help you best, please provide example data. Consider [*How to make a great reproducible example*](https://stackoverflow.com/a/5963610/6574038), thanks. – jay.sf Feb 22 '19 at 13:31

0 Answers0