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?
我用的是二音。plot函数在plotrix包中,需要旋转X轴标记45度。有人知道怎么做吗?
1 个解决方案
#1
2
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.
你需要抑制通常的标签,把你想要的标签和文本放在一起(……)srt = 45)。由于默认文本只在plot区域,所以y参数可能需要为负值,您需要通过将第三个参数“降低”到usr来扩展绘图区域。这都是在R-FAQ中描述的。
#1
2
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.
你需要抑制通常的标签,把你想要的标签和文本放在一起(……)srt = 45)。由于默认文本只在plot区域,所以y参数可能需要为负值,您需要通过将第三个参数“降低”到usr来扩展绘图区域。这都是在R-FAQ中描述的。