plot.soo_function {soobench} | R Documentation |
Plot a test function in 2D.
## S3 method for class 'soo_function' plot(x, lower = lower_bounds(x), upper = upper_bounds(x), n = 10000L, main = function_name(x), xlab = expression(x[1]), ylab = expression(x[2]), log = FALSE, rank = FALSE, show = c("image", "contour"), ..., image_args = list(useRaster = TRUE), contour_args = list())
x |
Function to plot. |
lower |
Lower bounds of x1 and x2. |
upper |
Upper bounds of x1 and x2. |
n |
Number of locations at which to sample the function. |
xlab |
Label of x (x1) axes. |
ylab |
Label of y (x2) axes. |
main |
Main title of plot. |
log |
If |
rank |
If |
show |
A vector of parts to plot. Defaults to
|
... |
Ignored. |
image_args |
List of further arguments passed to image(). |
contour_args |
List of further arguments passed to contour(). |
Olaf Mersmann olafm@datensplitter.net
par(mfrow=c(2, 2)) f <- sphere_function(2) plot(f) plot(f, show="contour") plot(f, rank=TRUE) plot(f, log=TRUE)