我使用包BsMD來繪製貝葉斯篩選(plot.BsProb)的邊際因子後驗概率。我想更改xlab和ylab,但我得到一個錯誤:R在嘗試更改xlab時plot.BsProb中的錯誤
library(BsMD)
X = matrix(c(1, 1, 1, 1, 1,-1,-1,-1,-1,-1,-1, 1, 1, 1,-1,-1,-1,-1,-1,
1,-1, 1,-1,-1, 1,-1, 1,-1, 1,-1,-1,-1,-1,-1, 1,-1,-1,-1,
-1,-1, 1, 1, 1, 1, 1,-1,-1,-1, 1,-1, 1, 1, 1, 1,-1,-1, 1,
1, 1, 1,-1,-1, 1, 1, 1,-1,-1,-1, 1,-1,-1, 1, 1, 1,-1,-1,
1, 1,-1, 1,-1, 1,-1,-1, 1,-1, 1, 1, 1,-1, 1,-1, 1, 1,-1
),nrow=19,ncol=5)
y = matrix(c(6,2,4,11,17,4,2,6,18,11,10,12,12,15,5,9,11,10,9),nrow=19,ncol=1)
Models = BsProb(X = X, y = y, blk = 0, mFac = 5, mInt = 1, p = 0.25, g = 2.5, ng = 1, nMod = 5)
plot(Models, code=FALSE, xlab="asdasdasdasd")
Error in plot.default(x, y[, 1], xlim = range(x), ylim = c(0, 1), type = "n", : formal argument "xlab" matched by multiple actual arguments.
可以請人幫我換了xlab和ylab密謀「型號」?
聰明的想法,+1。 – bgoldst