Skip to content

modifications to text.tree function

2 messages · Alexander Sirotkin, Brian Ripley

#
Hi.

I have to make some minor modifications to the text.tree function - I
don't like the way it prints the split labels (they are too long in my
case and overlap). I tried to make s simple modification to the
text.tree function so that it will limit the number of significant
digits in tree labels, but could not - the original function uses some
undocumented "treeco" function, which I can not find.

Any ideas ? Thanks.
#
Is this from package tree?  If so treeco is in the namespace but not
exported.
[1] "cv.tree"            "data.tree"          "descendants"
 [4] "deviance.tree"      "labels.tree"        "misclass.tree"
 [7] "model.frame.tree"   "na.tree.replace"    "node.match"
[10] "partition.tree"     "plot.tree"          "plot.tree.sequence"
[13] "pred1.tree"         "predict.tree"       "print.summary.tree"
[16] "print.tree"         "prune.misclass"     "prune.tree"
[19] "residuals.tree"     "snip.tree"          "summary.tree"
[22] "text.tree"          "tile.tree"          "tree"
[25] "tree.control"       "tree.depth"         "tree.matrix"
[28] "tree.screens"       "treeco"             "treepl"

so try e.g. tree:::treeco.
On Thu, 12 May 2005, Alexander Sirotkin wrote: