plot.hinge: Plot the hinge function

View source: R/hinge.R

plot.hingeR 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)

SVMMaj documentation built on May 23, 2022, 9:05 a.m.