Learn R Programming

FFTrees (version 1.1.3)

plot.fft: Draws (and creates) a FFT.

Description

The primary purpose of this function is to visualize a Fast and Frugal Tree (FFT) for data that has already been classified using the fft() function. However, if the data have not yet been classified, the function can also implement a tree specified by the user. Inputs with the (M) header are manditory. If the tree has already been implimented, then only inputs with the (A) header should be entered. If the tree has not been implimented, then only inputs with the (B) header should be entered.

Usage

"plot"(x = NULL, data = "train", which.tree = "best.train", main = "Data", decision.names = c("Noise", "Signal"), ...)

Arguments

x
A fft object created from fft()
data
Either a dataframe, or one of two strings 'best.train' or 'best.test'
which.tree
An integer indicating which tree to plot (only valid when the tree argument is non-empty). To plot the best training (or test) tree with respect to v (HR - FAR), use "best.train" or "best.test"
main
The main plot label.
decision.names
A string vector of length 2 indicating the content-specific name for noise (crit.vec == FALSE) and signal (crit.vec == TRUE) cases.
...
Additional arguments passed on to plot()

Examples

Run this code


# See the vignette for details

vignette("fft_plot", package = "FFTrees")



Run the code above in your browser using DataLab