Usage
# S3 method for BinaryTree
plot(x, main = NULL, type = c("extended", "simple"),
terminal_panel = NULL, tp_args = list(),
inner_panel = node_inner, ip_args = list(),
edge_panel = edge_simple, ep_args = list(),
drop_terminal = (type[1] == "extended"),
tnex = (type[1] == "extended") + 1, newpage = TRUE,
pop = TRUE, …)
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 information.
terminal_panel
an optional panel function of the form
function(node)
plotting the terminal nodes.
Alternatively, a panel generating function of class
"grapcon_generator"
that is called with arguments
x
and tp_args
to set up a panel function.
By default, an appropriate panel function is chosen
depending on the scale of the dependent variable.
tp_args
a list of arguments passed to terminal_panel
if this
is a "grapcon_generator"
object.
inner_panel
an optional panel function of the form
function(node)
plotting the inner nodes.
Alternatively, a panel generating function of class
"grapcon_generator"
that is called with arguments
x
and ip_args
to set up a panel function.
ip_args
a list of arguments passed to inner_panel
if this
is a "grapcon_generator"
object.
edge_panel
an optional panel function of the form
function(split, ordered = FALSE, left = TRUE)
plotting the edges.
Alternatively, a panel generating function of class
"grapcon_generator"
that is called with arguments
x
and ip_args
to set up a panel function.
ep_args
a list of arguments passed to edge_panel
if this
is a "grapcon_generator"
object.
drop_terminal
a logical indicating whether all terminal nodes
should be plotted at the bottom.
tnex
a numeric value giving the terminal node extension in relation
to the inner nodes.
newpage
a logical indicating whether grid.newpage()
should be called.
pop
a logical whether the viewport tree should be popped before
return.
…
additional arguments passed to callies.