Usage
## S3 method for class 'BinaryTree':
plot(x, main = NULL,
type = c("extended", "simple"), terminal_panel = NULL,
inner_panel = node_inner, edge_panel = edge_simple,
drop_terminal = (type[1] == "extended"),
tnex = (type[1] == "extended") + 1, new = TRUE,
pop = FALSE, ...)
Arguments
x
an object of class BinaryTree
.
main
an optional title for the plot.
type
a character specifying the complexity of the plot:
extended
tries to visualize the distribution of the
response variable in each terminal node whereas simple
only gives some summary i
terminal_panel
an optional panel function of the form
function(node)
plotting the terminal nodes.
Alternatively, a panel generating function of the form
function(ctreeobj, ...
inner_panel
an optional panel function of the form
function(node)
plotting the inner nodes.
edge_panel
an optional panel function of the form
function(split, ordered = FALSE, left = TRUE)
plotting the edges.
drop_terminal
a logical indicating whether all terminal nodes
should be plotted at the bottom.
tnex
a numeric value giving the terminal node extention.
new
a logical indicating whether a new plot should be created.
pop
a logical whether the viewport tree should be popped before
return.
...
additional arguments passed to callies.