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

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.

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.
plot
,
BinarizationResult
 # plot a binarization in one and two dimensions
res < (,"Petal.Length"], method="A")
(res)
(res, twoDimensional = )
(res, twoDimensional = ,
= ("x", "+"),
= ("red", "black", "royalblue"),
lty = 4, lwd = 2)

BiTrinA documentation built on May 1, 2019, 7:48 p.m.