powered by
Plot a test function in 2D.
plot_2d_soo_function( fn, lower = lower_bounds(fn), upper = upper_bounds(fn), n = 10000L, main = function_name(fn), xlab = expression(x[1]), ylab = expression(x[2]), log = FALSE, rank = FALSE, asp = 1, show = c("image", "contour"), image_args = list(useRaster = TRUE), contour_args = list(), ... )
[soo_function] Function to plot.
soo_function
[numeric] Lower bounds of x1 and x2.
numeric
[numeric] Upper bounds of x1 and x2.
[integer(1)] Number of locations at which to sample the function.
integer(1)
[character(1)] Main title of plot.
character(1)
[character(1)] Label of x (x1) axes.
[character(1)] Label of y (x2) axes.
[boolean(1)] If TRUE, the z axes is plotted on log scale.
boolean(1)
TRUE
[boolean(1)] If TRUE, instead of the y values, their ranks are drawn.
[numeric(1)] Aspect ratio of plot. Defaults to 1.
numeric(1)
1
[character] A vector of parts to plot. Defaults to c("image", "contour") and can be any subset.
character
c("image", "contour")
[list] List of further arguments passed to image().
list
[list] List of further arguments passed to contour().
Ignored.
# NOT RUN { par(mfrow=c(2, 2)) fn <- generate_sphere_function(2) plot(fn) plot(fn, show="contour") plot(fn, rank=TRUE) plot(fn, log=TRUE) # }
Run the code above in your browser using DataLab