plot.zsum {orloca} | R Documentation |
contour
and persp
provide two graphical representations of min-sum function (zsum
).
## 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, ...)
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. |
contour.loca.p
plots a contour like graphics and persp.loca.p
a 3D plot.
See also orloca-package
, plot.loca.p
and loca.p
.
# 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)