Learn R Programming

protoclass (version 1.0)

plot.protoclass: Plots prototypes with data

Description

This function is only for two-dimensional data.

Usage

"plot" (x, xtr, y, z = NULL, circleFLAG = TRUE, boundFLAG = FALSE, res = NULL, main = NULL, ...)

Arguments

x
output of protoclass function
xtr
n by p matrix of training features.
y
n-vector of labels of the training data.
z
set of potential prototypes (only required if protoclass was not run with z=x).
circleFLAG
indicates whether to draw circles around each prototype.
boundFLAG
indicates whether to draw classification boundary. This can be computationally expensive.
res
resolution of the classification boundary. Computation increases with res. Try 100.
main
optional main title for plot.
...
other arguments to pass to plot.

See Also

protoclass