plot.protoclass: Plots prototypes with data

Description Usage Arguments See Also

View source: R/protoclass.r

Description

This function is only for two-dimensional data.

Usage

1
2
3
4
  ## S3 method for class 'protoclass'
 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


protoclass documentation built on May 2, 2019, 3:42 a.m.