Learn R Programming

soobench (version 1.9.18)

plot_1d_soo_function: Plot a test function in 1D.

Description

Plot a test function in 1D.

Usage

plot_1d_soo_function(
  fn,
  lower = lower_bounds(fn),
  upper = upper_bounds(fn),
  n = 1001L,
  xlab,
  ylab,
  main = function_name(fn),
  log = FALSE,
  rank = FALSE,
  ...
)

Arguments

fn

[soo_function] Function to plot.

lower

[numeric] Lower bounds of x1 and x2.

upper

[numeric] Upper bounds of x1 and x2.

n

[integer(1)] Number of locations at which to sample the function.

xlab

[character(1)] Label of x (x1) axes.

ylab

[character(1)] Label of y (x2) axes.

main

[character(1)] Main title of plot.

log

[boolean(1)] If TRUE, the z axes is plotted on log scale.

rank

[boolean(1)] If TRUE, instead of the y values, their ranks are drawn.

...

Ignored.