Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tree.screens

Split Screen for Plotting Trees


Description

Splits the screen in a way suitable for using tile.tree.

Usage

tree.screens(figs, screen.arg = 0, ...)

Arguments

figs

A specification of the split of the screen. See split.screen for the allowed forms.

screen.arg

the screen to divide, by default the whole display area.

...

plot parameters to be passed to par.

Value

A vector of screen numbers for the newly-created screens.

Author(s)

B. D. Ripley

See Also

Examples

data(fgl, package="MASS")
fgl.tr <- tree(type ~ ., fgl)
summary(fgl.tr)
plot(fgl.tr);  text(fgl.tr, all=TRUE, cex=0.5)
fgl.tr1 <- snip.tree(fgl.tr, node=c(108, 31, 26))
tree.screens()
plot(fgl.tr1)
tile.tree(fgl.tr1, fgl$type)
close.screen(all = TRUE)

tree

Classification and Regression Trees

v1.0-40
GPL-2 | GPL-3
Authors
Brian Ripley [aut, cre]
Initial release
2019-03-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.