scree.plot {TWIX}R Documentation

Scree-plot

Description

A scree plot shows the sorted maximum decrease in impurity for each variable's value.

Usage

scree.plot(formula, data = NULL, bars = TRUE, col = "grey",
            type = "b", pch = 16, ylim = c(0, 1), ...)

Arguments

formula formula of the form y ~ x1 + x2 + ..., where y must be a factor and x1,x2,... are numeric or factor.
data an optional data frame containing the variables in the model.
bars the type of plot: barplot or lines.
col the colors for lines or Bar's.
type the color for points.
pch see par(pch =...).
ylim the y limits of the plot.
... other parameters to be passed through to plotting functions.

See Also

plot.TWIX, TWIX

Examples

    data(olives)
    scree.plot(Region~.,data=olives,bars=FALSE,col=2)
    scree.plot(Region~.,data=olives,bars=TRUE)

[Package TWIX version 0.2.6 Index]