plot,BinarizationResult-method | R Documentation |
Visualizes a binarization as a ray or a two-dimensional plot.
## 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,
...)
x |
If |
y |
If |
twoDimensional |
Specifies whether the binarization is depicted as a ray or as a two-dimensional curve (see details). |
showLegend |
If set to |
showThreshold |
If set to |
... |
Further graphical parameters to be passed to |
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 one-dimensional ray, and the separating threshold is depicted as a vertical line.
plot
,
BinarizationResult
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.