如何一鍵傳說添加到下面的情節添加按鍵傳說多直方圖中的R
我嘩嘩在右上角的地方有一個關鍵的傳說與兩短橫彩條,紅色的應該說「整形手術出了問題」,藍色的應該說「德國」。
我用下面的代碼以產生所述情節:
bar2 <- read.table("div/ana-mut[...]/barriers-set-2.dat", sep=" ")
bar2val <- c(bar2$V1, bar2$V2)
bar3 <- read.table("div/ana-mut[...]/barriers-set-3.dat", sep=" ")
bar3val <- c(bar3$V1, bar3$V2)
p1 <- hist(subset(bar2val, bar2val < 30), breaks=30)
p2 <- hist(subset(bar3val, bar3val < 30), breaks=30)
plot(p1, col=rgb(1,0,0,8/9), main="Barrier distribution", xlab="Barrier [kcal/mol]", ylab="Mutant count")
plot(p2, col=rgb(0,0,1,8/9), add=T)
任何提示,將不勝感激。
幾個百分點。首先請讓你的問題[reproducible](http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example)。另外,告訴我們你已經嘗試過了。 – csgillespie