snip.tree(tree, nodes)
Clicking the exit button (generally the right mouse button) stops the snipping process and returns the resulting tree object.
See the documentation for the specific graphics device for details on graphical input techniques.
z.survey <- tree(market.survey, na.action = na.omit) # grow the tree plot(z.survey) # plot the tree snip.tree(z.survey) # interactively select node using mouse in # graphics windowz.survey[-3] # remove the subtree of z.survey rooted at node 3