plot.structree: Plotting Results of Tree-Structured Clustering

Description Usage Arguments Details Author(s) References See Also Examples

View source: R/plot.structree.R

Description

Takes a fitted structree object and plots the results of the tree component of the model.

Usage

1
2
3
4
5
## 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 structree.

select

Elements of the tree component that are plotted; if select is not specified, by default all components are pictured in one plot.

paths

If true, the coefficient paths are plotted.

result

If true, the resulting partition is displayed.

ask

If true, each element chosen by select is plotted seperately.

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

structree

Examples

1
2
3
4
5
6
7
8
9
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)

structree documentation built on July 2, 2020, 12:27 a.m.