addGGContour: Add Contour Lines to Gradient Field Heatmap.

View source: R/addGGContour.R

addGGContourR Documentation

Add Contour Lines to Gradient Field Heatmap.

Description

Add contour lines of the separate objectives to the heatmap of the cumulated path lengths.

Usage

addGGContour(
  g,
  lower,
  upper,
  fn1,
  fn2,
  fn3,
  log.scale = TRUE,
  col1 = "goldenrod1",
  col2 = "white",
  col3 = "cyan3",
  n.points = 30L,
  ...
)

Arguments

g

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

lower

[numeric]
Vector of lower bounds.

upper

[numeric]
Vector of upper bounds.

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.

log.scale

[logical]
Should the resulting heights be displayed on a log-scale? The default is TRUE.

col1

[character]
Color used for the contour lines of the first objective (default: "goldenrod1").

col2

[character]
Color used for the contour lines of the second objective (default: "white").

col3

[character]
Color used for the contour lines of the third objective (default: "cyan3").

n.points

[integer]
Number of points used for computing the contour lines. The default is 30L.

...

[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.