嘿希望有人能告诉我如何在使用拨浪鼓中的 fancyrpartplot 函数时从框上方删除节点号,它们有时与变量标签重叠。尝试过 nn = FALSE 应该传递给 prp 但没有运气,
谢谢
library(rpart)
library(rattle)
library(survival)
fancyRpartPlot(
rpart(Surv(futime, death) ~ age, data = mgus2, cp = 0.002),
type = 4,
cex = 0.75,
split.col = "#34495e",
branch.col = "#34495e",
caption = "",
palettes= "Reds"
)