party-plot | R Documentation |
plot
method for party
objects with
extended facilities for plugging in panel functions.
## S3 method for class 'party'
plot(x, main = NULL,
terminal_panel = node_terminal, tp_args = list(),
inner_panel = node_inner, ip_args = list(),
edge_panel = edge_simple, ep_args = list(),
drop_terminal = FALSE, tnex = 1,
newpage = TRUE, pop = TRUE, gp = gpar(),
margins = NULL, ...)
## S3 method for class 'constparty'
plot(x, main = NULL,
terminal_panel = NULL, tp_args = list(),
inner_panel = node_inner, ip_args = list(),
edge_panel = edge_simple, ep_args = list(),
type = c("extended", "simple"), drop_terminal = NULL,
tnex = NULL, newpage = TRUE, pop = TRUE, gp = gpar(),
...)
## S3 method for class 'simpleparty'
plot(x, digits = getOption("digits") - 4, tp_args = NULL, ...)
x |
an object of class |
main |
an optional title for the plot. |
type |
a character specifying the complexity of the plot:
|
terminal_panel |
an optional panel function of the form
|
tp_args |
a list of arguments passed to |
inner_panel |
an optional panel function of the form
|
ip_args |
a list of arguments passed to |
edge_panel |
an optional panel function of the form
|
ep_args |
a list of arguments passed to |
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 |
pop |
a logical whether the viewport tree should be popped before return. |
gp |
graphical parameters. |
margins |
numeric vector of margin sizes. |
digits |
number of digits to be printed. |
... |
additional arguments passed to callies. |
This plot
method for party
objects provides an
extensible framework for the visualization of binary regression trees. The
user is allowed to specify panel functions for plotting terminal and inner
nodes as well as the corresponding edges. Panel functions for plotting
inner nodes, edges and terminal nodes are available for the most important
cases and can serve as the basis for user-supplied extensions, see
node_inner
.
More details on the ideas and concepts of panel-generating functions and
"grapcon_generator"
objects in general can be found in Meyer, Zeileis
and Hornik (2005).
Meyer D, Zeileis A, Hornik K (2006). The Strucplot Framework: Visualizing Multi-Way Contingency Tables with vcd. Journal of Statistical Software, 17(3), 1–48. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v017.i03")}
node_inner
, node_terminal
, edge_simple
,
node_barplot
, node_boxplot
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.