R语言怎么把两组数据放在一个直方图里?

如题所述

储存原始数据后,将其在R中命名为test,运行以下数据就能得到你要的条形图了

tp <- barplot(test$Length_distribution, names.arg=test$Sequence_size, las =2, ylim=c(0,30000),col="black")
text(tp, test$Length_distribution, labels =test$Length_distribution,pos=4,srt=90,offset=0)追问

我要直方图你给我条形图,逗

温馨提示:答案为网友推荐,仅供参考
第1个回答  2019-12-10
p1 <- hist(x$授信额度.万,col = rgb(1,0,0,0.5),main = "LOC VS NewLOC")
p2 <- hist(x$新授信额度.万.高,add=TRUE,col = rgb(0,1,0,0.5))
相似回答