plot.structree {structree} | R Documentation |
Plotting Results of Tree-Structured Clustering
Description
Takes a fitted structree
object and plots the results of the tree component of the model.
Usage
## S3 method for class 'structree'
plot(x, select = NULL, paths = FALSE,
result = FALSE, ask = FALSE, xlab = NULL, ylab = NULL,
main = NULL, lwd = 1, cex.txt = 1, cex.axis = 1, cex.lab = 1,
cex.main = 1, ...)
Arguments
x |
Object of class |
select |
Elements of the tree component that are plotted;
if |
paths |
If true, the coefficient paths are plotted. |
result |
If true, the resulting partition is displayed. |
ask |
If true, each element chosen by |
xlab |
Label of x-axis. |
ylab |
Label of y-axis. |
main |
Title of the plot. |
lwd |
Linewidth. |
cex.txt |
Size of the text. |
cex.axis |
Size of the axis. |
cex.lab |
Size of the labels. |
cex.main |
Size of title. |
... |
Further arguments passed to or from other methods. |
Details
By default the function pictures the estimated trees against all splits.
If select=NULL
the trees for all the predictors will be plotted.
Author(s)
Moritz Berger <Moritz.Berger@imbie.uni-bonn.de>
http://www.imbie.uni-bonn.de/personen/dr-moritz-berger/
References
Tutz, Gerhard and Berger, Moritz (2018): Tree-structured modelling of categorical predictors in regression, Advances in Data Analysis and Classification 12(3), 737-758.
Berger, Moritz and Tutz, Gerhard (2018): Tree-structured clustering in fixed effects models, Journal of Computational and Graphical Statistics 27(2), 380-392.
See Also
Examples
data(rent)
## Not run:
mod <- structree(nmqm~tr(bez)+tr(bj)+tr(rooms)+badkach0,data=rent,
family=gaussian,stop_criterion="CV")
plot(mod, paths=TRUE)
## End(Not run)