Learn R Programming

flacco (version 1.0)

plotBarrierTree2D: Plot Barrier Tree in 2D

Description

Creates a 2D image containing the barrier tree of this cell mapping.

Usage

plotBarrierTree2D(feat.object, control)

Arguments

feat.object
[FeatureObject] A feature object as created by createFeatureObject.
control
[list] A list, which stores additional control arguments. For further information, see details.

Value

  • [plot]. A 2D image, visualizing the barrier tree of this cell mapping.

item

  • Plot Control
  • bt.margin
  • bt.color_surface
  • bt.color_branches
  • bt.pch_root
  • bt.pch_breakpoint
  • bt.pch_basin
  • bt.col_root
  • bt.lwd
  • bt.label.{x, y}_coord
  • bt.label.{x, y}_id

itemize

  • bt.cm_surface

code

2

Details

Possible control arguments are:
  • Computation of Cell Mapping
:
  • gcm.approach
: Which approach should be used when computing the representatives of a cell. The default is "min", i.e. the observation with the best (minimum) value within per cell. gcm.cf_power: Theoretically, we need to compute the canonical form to the power of infinity. However, we use this value as approximation of infinity. The default is 256.

Examples

Run this code
# create a feature object
X = createInitialDesign(n.obs = 900, dim = 2)
f = smoof::makeAckleyFunction(dimensions = 2)
y = apply(X, 1, f)
feat.object = createFeatureObject(X = X, y = y, fun = f, blocks = c(4, 6))

# plot the corresponing barrier tree
plotBarrierTree2D(feat.object)

Run the code above in your browser using DataLab