我试图在R中绘制一个C5.0对象树,但它给出了以下错误,我似乎无法找到如何解决它.
plot(model) Error in partysplit(varid = as.integer(i),index = index,info = k,prob = NULL) : minimum of ‘index’ is not equal to 1 In addition: Warning message: In min(index,na.rm = TRUE) : no non-missing arguments to min; returning Inf
解决方法
试试这个
library(rattle) fancyRpartPlot(model)