plot.tree(x, type="", ...)
tree
.
This is assumed to be the result of some function that produces
an object with the same named
components as that returned by the
tree
function.
"u"
,
uniform spacing of nodes is used; default is nonuniform spacing
based on change of deviance of parent and children nodes.
x
are
returned invisibly as a list
with components
x
and
y
.
x
is produced on the current graphics device.
This function is a method for the generic function for class tree. It can be invoked by calling for an object x of the appropriate class, or directly by calling regardless of the class of the object.
zauto <- tree(Mileage ~ Weight + Disp., car.test.frame) plot(zauto) # plot on current graphics device text(zauto) # put some labels on the plot identify(zauto) # find out what car is where by clicking on plot