我有一个看起来像这样的数据集,我想在R中绘制完全相同的条形图。
这就是我一直在尝试的:
barplot(as.matrix(table[,2:8]), beside = T, ylim= c(0,1),
col = c("red", "blue", "green", "yellow",
"orange", "purple", "cyan", "grey",
"deeppink", "red4", "black", "brown"))
我得到一个条形图,但现在当我想更改标签而不是a,b,c ... g时:
(-0.20,-0.15)
(-0.15,-0.10)
.
.
.
(0.20,0.25)
我在我试图写的每个标签前面都有一个X字符:
谢谢。