Skip to content
Prev 31708 / 398506 Next

plot vertical labels along x axis

Try this sequence:

plot(1:10,xlab = "My label", axes = FALSE)
axis(1, at=seq(1,10,by=2),
labels=c("first","second","third","fourth","fifth"), las = 2)


See ?par for more information on the use of the 'las = 2' argument,
which sets the labels to be printed perpendicular to the axis.

Hope that helps,

Marc Schwartz