将重要字母添加到barplot

时间:2019-04-17 17:34:43

标签: r

我有一个基本问题。如何将重要性字母添加到小节图。例如,a,b,a,a,b。我知道这对您来说是非常基本的,但是这确实让我很烦,并且浪费了很多时间弄清楚它,但是很遗憾,我无法进行修改。那么,有什么帮助吗?

lfw<-read.table("LFW.csv",sep=";",header=TRUE)
lfw
Dip   Tet
1 24.58 37.54
2 19.60 26.53
3 13.79 22.29
col1=c("green", "blue", "red")
barplot(as.matrix(lfw), beside=TRUE,col=col1,ylim=c(0, 50), 
cex.axis=1,ylab="Leaves fresh weight")
mtext("a","b","a","a","a","b")[![enter image description here][1]][1]

0 个答案:

没有答案