我正在尝试使x轴标签在没有运气的条形图中旋转45度。这是我下面的代码:
barplot(((data1[,1] - average)/average) * 100,
srt = 45,
adj = 1,
xpd = TRUE,
names.arg = data1[,2],
col = c("#3CA0D0"),
main = "Best Lift Time to Vertical Drop Ratios of North American Resorts",
ylab = "Normalized Difference",
yaxt = 'n',
cex.names = 0.65,
cex.lab = 0.65)
beside = TRUE
,则可能要使用,colMeans(x)
而不是仅x
希望每个组仅使用一个标签。