Plot a Tree Object

DESCRIPTION:
Plots a tree object on the current graphics device.

USAGE:
plot.tree(x, type = "", ...)

REQUIRED ARGUMENTS:
x:
fitted model object of class 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.

OPTIONAL ARGUMENTS:
type=:
if "u", uniform spacing of nodes is used; default is nonuniform spacing based on change of deviance of parent and children nodes. The mkh graphical parameter is changed so that functions that require node coordinates, such as text and identify, can query it.

Graphical parameters may also be supplied as arguments to this function (see par).


VALUE:
the coordinates of the nodes in x are returned invisibly as a list with components x and y.

SIDE EFFECTS:
a plot containing an unlabeled dendrogram of the tree object x is produced on the current graphics device.

DETAILS:
This function is a method for the generic function plot for class "tree". It can be invoked by calling plot for an object of the appropriate class, or directly by calling plot.tree regardless of the class of the object.

SEE ALSO:
plot , plot.tree.sequence , tree.object .

EXAMPLES:
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