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)
  i <- sample(572,150)
  ic <- setdiff(1:572,i)
  training <- olives[ic,]
  valid <- olives[i,]
  #
  #Tree<-TWIX(Region~.,training,test.data=valid,topN=c(10,2),method="local")
  #plot(Tree)
  #plot(Tree,type="ccr")
  #plot(Tree,type="d&c")
  #plot(Tree,i.plot=TRUE)

[Package TWIX version 0.2.1 Index]