plot.zsum {orloca}R Documentation

Plots of the min-sum objective function

Description

contour and persp provide two graphical representations of min-sum function (zsum).

Usage

## S3 method for class 'loca.p':
contour(x, xmin=min(x@x), xmax=max(x@x), ymin=min(x@y), ymax=max(x@y), n=100, ...)
## S3 method for class 'loca.p':
persp(x, xmin=min(x@x), xmax=max(x@x), ymin=min(x@y), ymax=max(x@y), n=100, ...)

Arguments

x The loca.p object to compute the objective.
xmin The minimum value for x axis.
xmax The maximum value for x axis.
ymin The minimum value for y axis.
ymax The maximum value for y axis.
n The number of divisions for grid.
... Other options.

Value

contour.loca.p plots a contour like graphics and persp.loca.p a 3D plot.

See Also

See also orloca-package, plot.loca.p and loca.p.

Examples

# An unweighted new loca.p object
loca <- loca.p(x = c(-1, 1, 1, -1), y = c(-1, -1, 1, 1))

# The contour plot of loca object
contour(loca)

# The 3D graphics
persp(loca)

[Package orloca version 2.0 Index]