addGGOptima: Add (Known) Local Optima of Smoof Functions to Gradient Field...

View source: R/addGGOptima.R

addGGOptimaR Documentation

Add (Known) Local Optima of Smoof Functions to Gradient Field Heatmap.

Description

If the underlying single-objective functions are smoof-functions, extract their local optima and add them to the gradient field heatmap.

Usage

addGGOptima(g, fn1, fn2, fn3, symbol1 = 21L, symbol2 = 22L, symbol3 = 24L, ...)

Arguments

g

[ggplot2::ggplot]
ggplot-object as created by ggplotHeatmap.

fn1

[function]
The first objective used for computing the multi-objective gradient.

fn2

[function]
The second objective used for computing the multi-objective gradient.

fn3

[function()]
The third objective (if existing) used for computing the multi-objective gradient.

symbol1

[⁠[integer](1L) | [character](1L)⁠]
Symbol used for indicating the local optima of the first objective (default: 21L, i.e., a filled circle).

symbol2

[⁠[integer](1L) | [character](1L)⁠]
Symbol used for indicating the local optima of the second objective (default: 22L, i.e., a filled square).

symbol3

[⁠[integer](1L) | [character](1L)⁠]
Symbol used for indicating the local optima of the third objective (default: 24L, i.e., a filled triangle).

...

any
Further arguments to be passed to the geom_tile function of ggplot.

Value

ggplot
A ggplot object displaying the multi-objective gradient landscape.


kerschke/moPLOT documentation built on Aug. 23, 2023, 7:37 p.m.