有没有办法从 fancyRpartPlot 中删除节点编号?

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

嘿希望有人能告诉我如何在使用拨浪鼓中的 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"
  )
r decision-tree rattle
© www.soinside.com 2019 - 2024. All rights reserved.