plot.TWIX {TWIX}R Documentation

Plotting method for TWIX Objects

Description

Plot an TWIX or bootTWIX object generated by TWIX or bootTWIX function(s).

Usage

## S3 method for class 'TWIX':
plot(x,sq = 1:length(x$trees),type = "deviance",
            i.plot = FALSE,size = 3,freq = TRUE,breaks = "Sturges",
            pch = par("pch"),...)

Arguments

x an object of class TWIX.
sq Integer vector giving the number of trees to be plotted.
type one of "deviance", "ccr","d&c".
i.plot logical. If TRUE, iplot will be used.
size value for largest circle (cex).
freq logical. Should the frequence or density be plotted.
breaks see histogram.
pch a vector of plotting characters or symbols.
... graphical parameters can be given as arguments to 'plot'. Many methods will also accept the following arguments:

Details

If type = "deviance":
the training deviance vs. test deviance will be plotted.
If type = "ccr":
the correct classification rate(CCR) for training data vs. the CCR for test data.
If type = "d&c":
the deviance vs. CCR for test data.

See Also

TWIX get.tree

Examples


data(olives)
set.seed(123)
i <- sample(572,150)
ic <- setdiff(1:572,i)
training <- olives[ic,]
test <- olives[i,]

TM1<-TWIX(Region~.,data=training[,1:9],test.data=test,topN=c(5,3),method="local")
plot(TM1)
plot(TM1,type="ccr")
plot(TM1,type="d&c")

#
#plot(TM1,i.plot=TRUE)

[Package TWIX version 0.2.4 Index]