Description Usage Arguments Details See Also
Creates a plot showing the convergence curve of each search that has been
applied to the given problem
, aggregated over all search runs (mean or
median). This is a generic S3 method.
1 2 3 4 5 | plotConvergence(data, problem, type = c("mean", "median"), col = "black",
plot.type = "s", lty, title = "Convergence curve(s)", subtitle, xlab,
ylab = "Value", time.unit = c("milliseconds", "seconds", "minutes",
"hours"), min.time, max.time, legend = TRUE, legend.pos,
legend.inset = c(0.02, 0.05), legend.names, ...)
|
data |
data object containing the analysis results |
problem |
name of the problem for which the plot is made. Can be omitted
if the |
type |
one of |
col |
color(s) of the plotted lines and/or symbols, used cyclically when
providing a vector. Defaults to |
plot.type |
defaults to |
lty |
line type(s), used cyclically when providing a vector. Line types default to 1:n where n is the number of plotted curves. |
title |
plot title. Defaults to |
subtitle |
plot subtitle. By default, a subtitle will be added that
states the name of the problem for which the plot was made. If no substitle
is desired, set |
xlab |
x-axis label. Defaults to |
ylab |
y-axis label. Defaults to |
time.unit |
one of |
min.time |
zoom in on the part of the curve(s) after this point in time
on the |
max.time |
zoom in on the part of the curve(s) before this point in time
on the |
legend |
logical: indicates whether a legend should be added to the plot.
Defaults to |
legend.pos |
position of the legend, specified as a keyword keyword from
the list |
legend.inset |
inset distance(s) from the margins as a fraction of the
plot region. If a single value is given, it is used for both margins; if two
values are given, the first is used for |
legend.names |
names to be shown in the legend. Defaults to the search
names obtained from calling |
... |
optional other arguments passed to |
If the data
contains results for a single problem only, the argument
problem
can be omitted. If desired to plot convergence curves for a
selection of the applied searches, use reduceJAMES
to extract
the respective data.
The curves are plotted using matplot
. More information about the
graphical parameters are provided in the documentation of this function. By
default, a legend is added to the plot. This can be omitted by setting
legend = FALSE
. If desired, a custom legend may then be added. It is
possible to zoom in on a specific region of the plot using the parameters
min.time
and max.time
.
Any additional parameters are passed to matplot
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.