Rotate X Axis Labels of twoord.plot in R

后端 未结 1 514
孤独总比滥情好
孤独总比滥情好 2021-01-28 03:44

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

1条回答
  •  有刺的猬
    2021-01-28 04:31

    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 讨论(0)
提交回复
热议问题