Description Usage Arguments Details Value Author(s) Examples
View source: R/optimisationCurve.R
Generates algorithm-specific plots of optimisation or optimal sampling design(s).
1 | optimisationCurve(optSD, type, nameSave, ...)
|
optSD |
result of |
type |
character, indicating type of |
nameSave |
path of file where to save, without suffix, generates a .png file |
... |
parameters to be forwarded to |
The type of plot depends on the algorithm:
"ssa"
: curve of the cost in each iteration: proposed design (red dot), accepted design (blue line), best design until now (green line)
"genetic"
: two plots in one panel. Optimisation curve: mean (blue line) and best (green circles) cost in each iteration. Population: cost versus number of sensors in the final population. It may be useful to choose larger width
as plots are placed beside each other.
"greedy"
: cost (blue) and number of sensors (red) in each iteration, combined in one plot with adjusted scales. Lowest cost is marked by solid dots.
"global"
: a barplot of all sampling designs, showing how many plumes are detected by 1st, 2nd, etc. sensor.
"manual"
: similar to the plots of "greedy"
.
Generates a plot or a file with it, no value returned.
Kristina B. Helle, kristina.helle@uni-muenster.de
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 30 31 32 33 34 35 36 | data(SDgreedy)
curve_greedy1 = optimisationCurve(
optSD = SDgreedy,
type = "greedy")
data(SDgenetic)
curve_genetic1 = optimisationCurve(
optSD = SDgenetic,
type = "genetic")
data(SDglobal)
curve_global1 = optimisationCurve(
optSD = SDglobal,
type = "global")
data(SDmanual)
curve_manual1 = optimisationCurve(
optSD = SDmanual,
type = "manual")
data(SDssa)
curve_ssa1 = optimisationCurve(
optSD = SDssa,
type = "ssa")
## Not run:
# generates a file
curve_global1 = optimisationCurve(
optSD = SDglobal,
type = "global",
nameSave = "optSD_global",
width = 600, height = 300)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.