Learn R Programming

SVMMaj (version 0.2.9.3)

plot.hinge: Plot the hinge function

Description

This function plots the hinge object created by getHinge.

Usage

# S3 method for 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

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

Run the code above in your browser using DataLab