Learn R Programming

Crossover (version 0.1-11)

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

Description

Plots information about the search algorithm and its process.

Usage

## S3 method for class 'CrossoverSearchResult,missing':
plot(x, y, type = 1,
  show.jumps = FALSE, ...)

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.
...
Arguments to be passed to methods, such as graphical parameters (see par). Many methods will accept the following arguments: [object Object],[object

Value

  • Returns a ggplot object of the plot.

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
x <- searchCrossOverDesign(s=9, p=5, v=4, model=4)
plot(x)

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

Run the code above in your browser using DataLab