CGGP (version 1.0.4)

CGGPplotblockselection: Plot CGGP block selection over time

Description

Shows the order in which blocks were selected for each dimension. Gives an idea of how the selections change over time.

Usage

CGGPplotblockselection(CGGP, indims)

Value

ggplot2 object

Arguments

CGGP

CGGP object

indims

Which input dimensions should be shown?

Examples

Run this code
gs <- CGGPcreate(d=3, batchsize=100)
# All dimensions will look similar
CGGPplotblockselection(gs)
# \donttest{
# You need to append with CGGPappend after fitting to see a difference
f <- function(x){x[1]^1.2}
y <- apply(gs$design, 1, f)
gs <- CGGPfit(gs, Y=y)
gs <- CGGPappend(gs, 100)
# Now you will see higher for X1 from 100 to 200 while others remain low.
CGGPplotblockselection(gs)
# }

Run the code above in your browser using DataLab