Visualization of binarization results.
Description
Visualizes a binarization as a ray or a twodimensional plot.
Usage
1
2
3
4
5
6
7
8
9
10
11
12  ## S4 method for signature 'BinarizationResult,ANY'
plot(x,
twoDimensional=FALSE,
showLegend=TRUE,
showThreshold=TRUE,
...)
## S4 method for signature 'numeric,BinarizationResult'
plot(x,
y,
showLegend=TRUE,
showThreshold=TRUE,
...)

Arguments
x 
If y is supplied, this is a vector of x coordinates for the binarization values iny , which are plotted on the y axis. If y is not supplied, this is object of class BinarizationResult containing the binarized values to visualize.

y 
If x is a vector of x coordinates, this is object of class BinarizationResult containing the binarized values to visualize.

twoDimensional 
Specifies whether the binarization is depicted as a ray or as a twodimensional curve (see details).

showLegend 
If set to true , a legend is included in the plot.

showThreshold 
If set to true , the binarization threshold is depicted as a horizontal or vertical line (depending on twoDimensional ).

... 
Further graphical parameters to be passed to plot . The parameters col and pch can be supplied in different ways: If supplied as vectors of size 2, the first value corresponds to a 0 in the binarization, and the second value corresponds to a 1 in the binarization. col can also have length 3, in which case the third entry is the color of the threshold line.
If col or pch have the size of the input vector, the corresponding colors and symbols are assigned to the data points.

Details
The function comprises two different plots: If twoDimensional = TRUE
, the positions in the input vector are aligned with the x axis, and the y axis corresponds to the values. The binarization threshold is shown as a horizontal line, and the binarization is indicated by two different symbols.
If twoDimensional = FALSE
, the binarized values are aligned with a onedimensional ray, and the separating threshold is depicted as a vertical line.
See Also
plot
,
BinarizationResult
Examples
 # plot a binarization in one and two dimensions
res < binarize.BASC(iris[,"Petal.Length"], method="A")
plot(res)
plot(res, twoDimensional = TRUE)
plot(res, twoDimensional = TRUE,
pch = c("x", "+"),
col = c("red", "black", "royalblue"),
lty = 4, lwd = 2)
