我有一個圖例,但它覆蓋了barplot中的一列。圖例覆蓋
BOD<-matrix(c(2846,2397,4408,3563,2001,1713,4137,3197,136,107,307,203),
nrow = 3, byrow = T)
colnames(BOD)<-c("BOD","BOD lọc","COD","COD lọc")
DT <- barplot(BOD,
main="Do Thi BOD",
legend=c("<5 Nam","5-10 Nam",">10 Nam"),
beside = T)
閱讀'barplot'並注意'args.legend'參數。按照「?legend」的鏈接,並閱讀如何指定圖例的繪製位置。 – joran