View source: R/plot_progress_on_instance.R
Plot the progress of a set of algorithms on one instance.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | aitoa.plot.progress.on.instance(
results.dir = ".",
algorithms,
instance,
instance.name = instance,
time.column = c("t", "fes"),
max.time = NA_integer_,
algorithm.colors = aitoa.distinct.colors(length(algorithms)),
algorithm.lty = .default.lty,
algorithm.lwd = .default.lwd,
instance.limit = NA_integer_,
instance.limit.name = NA_character_,
instance.limit.color = .instance.limit.color,
instance.limit.lty = .instance.limit.lty,
instance.limit.lwd = .instance.limit.lwd,
legend.cex = .legend.cex,
legend.bg = .legend.bg,
time.axis.text = if (time.column[[1L]] == "t") .time.ms.text else .time.fes.text,
quality.axis.text = .quality.text,
make.time.unique = FALSE,
f.must.be.improving = TRUE,
max.runs.to.plot = NA_integer_,
mgp = .default.mgp,
tck = .default.tck,
cex = .default.cex,
mar = .default.mar.without.labels,
execute = { },
...
)
|
results.dir |
the directory where the results can be loaded from |
algorithms |
a list of algorithsm, the |
instance |
the instance id to be plotted |
instance.name |
the name of the instance to show in the legend |
time.column |
the time column |
max.time |
an optional maximal time limit |
algorithm.colors |
a character vector of the same length as
|
algorithm.lty |
the line type to be used for the algorithms, can be vector |
algorithm.lwd |
the line width to be used for the algorithms, can be vector |
instance.limit |
an opional quality limit to be plotted as horizontal line |
instance.limit.name |
the optional name of the quality limit |
instance.limit.color |
the color for the instance limit line |
instance.limit.lty |
the line type for the instance limit line |
instance.limit.lwd |
the line width for the instance limit line |
legend.cex |
the character scaling for the legend |
legend.bg |
the background color for the legend |
time.axis.text |
the text to be used for labeling the time axis,
|
quality.axis.text |
the text to be used for labeling the quality axis,
|
make.time.unique |
should we make the time indices unique (except maybe
for the first and last point)? This makes sense when we want to plot
diagrams over a time axis, as we then have removed redundant points right
away. If |
f.must.be.improving |
|
max.runs.to.plot |
an optional number giving the maximum number of runs to be plotted per algorithm |
mgp |
the mgp parameter to be passed to plot |
tck |
the tck parameter to be passed to plot |
cex |
the default character scaling |
mar |
the default margins |
execute |
an arbitrary block of code to be executed within the plotting process |
... |
parameters to be passed to par |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.