post.itree {itree} | R Documentation |
Generates a PostScript presentation plot of an itree
object.
Identical to the function in rpart.
post(tree, ...) ## S3 method for class 'itree' post(tree, title., filename = paste(deparse(substitute(tree)), ".ps", sep = ""), digits = getOption("digits") - 3, pretty = TRUE, use.n = TRUE, horizontal = TRUE, ...)
tree |
fitted model object of class |
title. |
a title which appears at the top of the plot. By default, the
name of the |
filename |
ASCII file to contain the output. By default, the name of the file is
the name of the object given by |
digits |
number of significant digits to include in numerical data. |
pretty |
an integer denoting the extent to which factor levels will be
abbreviated in the character strings defining the splits;
(0) signifies no abbreviation of levels. A |
use.n |
Logical. If |
horizontal |
Logical. If |
... |
other arguments to the |
a plot of itree
is created using the postscript
driver, or
the current device if filename = ""
.
plot.itree
, itree
, text.itree
, abbreviate
#the rpart examples: z.auto <- itree(Mileage ~ Weight, car.test.frame) post(z.auto, file = "") # display tree on active device # now construct postscript version on file "pretty.ps" # with no title post(z.auto, file = "pretty.ps", title = " ") z.hp <- itree(Mileage ~ Weight + HP, car.test.frame) post(z.hp)