是否有可能重新命名varImpPlot
的library(randomForest)
y軸文本?重命名y軸文本標籤varImpPlot
下面的例子:
library (MASS)
library(randomForest)
set.seed (1)
train1 = sample (1: nrow(Boston), nrow(Boston)/2)
rf.boston =randomForest(medv~.,data=Boston ,subset =train1 ,mtry=6, importance =TRUE)
varImpPlot (rf.boston,n.var=4)
歡迎您點擊複選標記以解決此問題 – shayaa