plot.hinge {SVMMaj}R Documentation

Plot the hinge function

Description

This function plots the hinge object created by getHinge.

Usage

## S3 method for class 'hinge'
plot(x, y = 1, z = NULL, ...)

Arguments

x

The hinge object returned from getHinge.

y

Specifies the class (-1 or 1) to be plotted for the hinge error.

z

If specified, the majorization function with the supporting point z will also be plotted.

...

Other arguments passed to plot method.

Examples

hingefunction <- getHinge()
## plot hinge function value
plot(hingefunction, z = 3)

[Package SVMMaj version 0.2.9.3 Index]