Description Usage Arguments Details Side Effects Examples
Allows the user to plot a trim sequence.
1 2 3 |
x |
object of class |
order |
of |
type, ylim, ... |
graphical parameters. |
This function is a method for the generic function plot()
for class trim.sequence
. It can be invoked by calling plot(x)
for an object x
of the appropriate class, or directly by calling plot.trim.sequence(x)
regardless of the class of the object.
Plots deviance or number of misclassifications (or total loss) versus size for a sequence of trimmed trees.
1 2 3 4 5 6 7 8 9 10 11 12 | #grow an oblique tree
data(Pima.tr, package="MASS")
ob.tree <- oblique.tree( type~.,
Pima.tr,
oblique.splits="only",
variable.selection="model.selection.aic")
#look at the tree
plot(ob.tree);text(ob.tree)
#and its trim sequence
plot(trim.oblique.tree(ob.tree))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.