Plot a Tree Sequence
Allows the user to plot a tree sequence.
## S3 method for class 'tree.sequence' plot(x, ..., type = "l", ylim = range(x$dev), order = c("increasing", "decreasing"))
x |
object of class |
order |
of |
type, ylim, ... |
graphical parameters. |
This function is a method for the generic function
plot()
for class tree.sequence
.
It can be invoked by calling plot(x)
for an
object x
of the appropriate class, or directly by
calling plot.tree.sequence(x)
regardless of the
class of the object.
Plots deviance or number of misclassifications (or total loss) versus size for a sequence of trees.
data(cpus, package="MASS") cpus.ltr <- tree(log(perf) ~ syct + mmin + mmax + cach + chmin + chmax, data = cpus) plot(prune.tree(cpus.ltr))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.