我生成了一个随机森林树,如下所示,我尝试绘制它,但遇到了错误,我犯了什么错误?如何以正确的方式绘制它?
Actmodel <- train(Activity ~ Section + Author, data = CB1, method = "ranger",trControl = trainControl(method = "cv", number = 10, verboseIter = TRUE), preProcess = c("knnImpute"))
plot(Actmodel$finalModel)
Error in xy.coords(x, y, xlabel, ylabel, log) :
'x' is a list, but does not have components 'x' and 'y'