开发者

Rotate X Axis Labels of twoord.plot in R

开发者 https://www.devze.com 2023-03-07 04:49 出处:网络
I am using the twoord.plot function in the plotrix package and need to rotate 开发者_StackOverflowthe X Axis tick labels 45 degrees. Anyone know how to do so?You need to suppress the usual labeling an

I am using the twoord.plot function in the plotrix package and need to rotate 开发者_StackOverflowthe X Axis tick labels 45 degrees. Anyone know how to do so?


You need to suppress the usual labeling and put your desired labeling in with text(..., srt=45). Since by default text only goes in the plot region, the y argument may need to be negative, and you will need to extend the plotting region by "lowering" the third argument to usr. This is all described in the R-FAQ.

0

精彩评论

暂无评论...
验证码 换一张
取 消