Usage
post.rpart(tree, title,
filename=paste(deparse(substitute(tree)), ".ps", sep = ""),
digits= .Options$digits -3, pretty=T,
use.n=T, horizontal=T, ...)
Arguments
tree
fitted model object of class rpart
. This is assumed to be the result
of some function that produces an object with the same named
components as that returned by the rpart
function.
title
a title which appears at the top of the plot. By default, the
name of the rpart
endpoint is printed out.
filename
ASCII file to contain the output. By default, the name of the file is
the name of the object given by rpart
(with the suffix .ps
added). If
filename = ""
, the plot appears on the current graphical device.
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 NULL
signifies using
elements of letters to represent the different factor lev
use.n
Logical. If TRUE
(default), adds to label
(#events level1/ #events level2/etc. for method class
, n
for
method anova
, and #events/n for methods poisson
and exp
).
horizontal
Logical. If TRUE
(default), plot is horizontal. If FALSE
, plot
appears as landscape.
...
other arguments to the postscript
function.