Rotate Axis Names on X-Axis in R

You use one of the par parameters to do this. For example:


x = c(3,4,2,5)
names(x) = c("ABC", "DEF", "GHI", "JKL")
barplot(x, las="2")

See also: What Is the R Statistical Package

Leave a Reply