Reputation: 85
In drawing a plot with R, the X-axe labels are horizontal, I want a vertical labels.Is it possible?
For example, such this:
Upvotes: 1
Views: 903
Reputation: 121568
The question of rotating isduplicated ad is answered many times here. But I add this answer for 2 reasons :
plotmath
This is the code:
par(mar=c(8, 4, 2, 4))
plot(1:5,1:5,xaxt='n',frame.plot=FALSE,xlab='')
expr1 <- expression(L[2](delta[J~S](X,W),theta))
expr2 <- expression(L[4](delta[J~S](X,W),theta))
axis(1,las=2,labels=c(expr1,expr1),at=2:3,pos=1)
arrows(0,1,5,1)
Upvotes: 1