Learn R Programming

Crossover (version 0.1-22)

plot: Plots information about the search algorithm and its process.

Description

Plots information about the search algorithm and its process.

Usage

# S4 method for CrossoverSearchResult,missing
plot(x, y, type = 1, show.jumps = FALSE)

Value

Returns a ggplot object of the plot.

Arguments

x

Result from searchCrossOverDesign.

y

Missing.

type

Type of plot. Number 1 is more colorful, but number 2 perhaps a bit easier to understand.

show.jumps

If TRUE vertical lines will show where the specified jumps occured.

Author

Kornelius Rohmeyer rohmeyer@small-projects.de

Details

The x-axis corresponds to the consecutive simulation runs and the y-axis to the design criterion E that depending on the model is either a weighted average of efficiency factors or standardized pairwise variances and described in detail in the vignette of this package. Also see the vignette for a few examples and a discussion what can be derived from this plots.

Examples

Run this code

if (FALSE) {
x <- searchCrossOverDesign(s=9, p=5, v=4, model=4)
plot(x)
}

x <- searchCrossOverDesign(s=9, p=5, v=4, model=4, n=c(50,10), jumps=c(10, 10))
plot(x, show.jumps=TRUE)
plot(x, type=2)

Run the code above in your browser using DataLab