plotcp中没有值,没有轴名称

问题描述 投票:0回答:1

我使用rpart包,当我使用plotcp时,绘图不会显示轴的名称,也不会显示轴上的值。

我该如何解决这个问题?

编辑:这是代码

library(rpart.plot)
library(rpart)
train<-read.table(file="synth_train.txt",header = TRUE)
tree <- rpart(y~., data=train, method="class", minsplit=2, cp=0 )
plotcp(tree)
plot axis
1个回答
0
投票

我使用dev.off()并且它有效

© www.soinside.com 2019 - 2024. All rights reserved.