modifications to text.tree function
Is this from package tree? If so treeco is in the namespace but not exported.
library(tree)
ls(asNamespace("tree"))
[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:
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. -- Alexander Sirotkin
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595