Usage
## S3 method for class 'tvcm':
plot(x, type = c("default", "coef",
"simple", "partdep", "cv"),
main = NULL, part = NULL,
drop_terminal = TRUE,
tnex = 1, newpage = TRUE, ask = NULL,
pop = TRUE, gp = gpar(), ...)panel_partdep(object, parm = NULL,
var = NULL, ask = NULL,
prob = NULL, neval = 50, add = FALSE,
etalab = c("int", "char", "eta"), ...)
panel_coef(object, parm = NULL,
id = TRUE, nobs = TRUE,
exp = FALSE, plot_gp = list(),
margins = c(3, 2, 0, 0), yadj = 0.1,
mean = FALSE, mean_gp = list(),
conf.int = TRUE, conf.int_gp = list(),
abbreviate = TRUE, etalab = c("int", "char", "eta"), ...)
Arguments
type
the type of the plot. Available types are
"default"
, "simple"
, "coef"
,
"partdep"
and "cv"
.
main
character. A main title for the plot.
drop_terminal
a logical indicating whether all terminal nodes
should be plotted at the bottom. See also
plot.party. 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.
gp
graphical parameters. See gpar. part
integer scalar. The partition i.e. varying coefficient
component to be plotted.
var
character vector. Indicates the partitioning variables
to be visualized.
ask
logical. Whether an input should be asked before printing
the next panel.
prob
a probability between 0 and 1. Gives the size of the
random subsample over which the coefficients are averaged. May be
smaller than 1 if the sample is large.
neval
the maximal number of distinct values of the variable to
be evaluated.
add
logical. Whether the panel is to be added into an active
plot.
id
logical. Whether the node id should be displayed.
nobs
logical. Whether the number of observations in each node
should be displayed.
exp
logical. Whether the labels in the y-axes should be the
exponential of coefficients.
plot_gp
a list of graphical parameters for the panels. Includes
components xlim
, ylim
, pch
, ylab
,
type
(the type of symbols, e.g. "b"
), label
(characters for ti
margins
a numeric vector c(bottom, left, top, right)
specifying the space on the margins for each panel.
yadj
a numeric scalar larger than zero that increases the
margin above the panel. May be useful if the edge labels are covered
by the coefficient panels.
mean
logical. Whether the average coefficients over the
population should be visualized.
mean_gp
list with graphical parameters for plotting the mean
coefficients. Includes a component gp = gpar(...)
and a
component pch
. See examples.
conf.int
logical. Whether confidence intervals should be
visualized. Note that these intervals do not account for the error
of the algorithm,
conf.int_gp
a list of graphical parameters for the confidence
intervals applied to arrow. Includes angle
,
length
, ends
and type
. See examples. abbreviate
logical scalar. Whether labels of coefficients should
be abbreviated.
etalab
character. Whether category-specific effects should be
labeled by integers of categories (default), the labels of the
categories ("char"
) or the index of the predictor
("eta"
).