plotStepFunctions {Binarize}R Documentation

Plot all step functions for BASC or TASC

Description

A specialized visualization that plots all the optimal step functions computed by the BASC algorithms or TASC.

Usage

plotStepFunctions(x, 
                  showLegend=TRUE, 
                  connected=FALSE, 
                  withOriginal=TRUE, 
                  ...)

Arguments

x

A binarization (or trinarisation) result object of class BASCResult (TASCResult).

showLegend

If TRUE, a legend is included in the plot.

connected

If TRUE, the single steps of the step functions are connected by lines.

withOriginal

If set to TRUE, the original step function (i.e. the sorted input vector) is included in the plot.

...

Additional graphical parameters to be passed to plot.

See Also

BASCResult, binarize.BASC, TASCResult, TASC

Examples

result <- binarize.BASC(iris[,"Petal.Width"], 
                        method="B")
plotStepFunctions(result)

result <- TASC(iris[,"Petal.Width"])
plotStepFunctions(result)

[Package Binarize version 1.3.1 Index]