我想在r中的plot.design命令中倾斜因子的级别
require(stats)
plot.design(warpbreaks)
如果我执行上面的代码,图中将显示水平方向的水平,但我想将水平倾斜45度。这将帮助我更好地展示我的应用水平任何想法如何做到这一点?
这在ggplot2之外做有些麻烦,但可行。
plot.design(warpbreaks, axes = FALSE) # plot with no axes
axis(2) # add y as predefined by default
# manually add text in place of the label
text(1:2, par("usr")[3], labels = c("wool", "tension"), srt = 45, adj = c(1.1,1.1), xpd = TRUE)
box() # you need this to have the square around your image