Learn R Programming

soobench (version 1.9.18)

plot.soo_function: Plot a test function in 1 or 2 dimensions.

Description

Plot a test function in 1 or 2 dimensions.

Usage

# S3 method for soo_function
plot(x, ...)

Arguments

x

[soo_function] Function to plot.

...

Passed to the respective plot function.

Examples

Run this code
# 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