plot.smplx {labsimplex} | R Documentation |
Draws a two dimentional plot of the vertexes in a simplex
Description
The function generates a 2D plot of the vertexes in a simplex optimization when simplex dimensionality is at least 2. When dimensionality is higher than 2, the plot produced is a projection of the selected variables.
Usage
## S3 method for class 'smplx'
plot(x, sel.dim = NULL, all.ver = TRUE, all.lin = TRUE,
expand = TRUE, exp.fac = 1.5, ...)
Arguments
x |
object of class |
sel.dim |
|
all.ver |
logical default to |
all.lin |
logical default to |
expand |
logical default to |
exp.fac |
expansion factor used when |
... |
other graphical parameters used in
|
Details
For 3D representations of simplexes with dimensionality higher than 2 you
can use plotSimplex3D
.
Value
2D plot of the simplex coordinates.
Author(s)
Cristhian Paredes, craparedesca@unal.edu.co
Jesús Ágreda, jagreda@unal.edu.co
See Also
Examples
plot(x = labsimplex(n = 2, centroid = c(7, 340), stepsize = c(1.2, 15)))
## Several options are posible when visualizing higher order simplexes
plot(x = labsimplex(n = 3))
plot(x = labsimplex(n = 3), sel.dim = c(2, 3))
## Simplex movements can be visualized after some experiments has been
## performed
simplex <- exampleOptimization(surface = exampleSurfaceR2,
centroid = c(7, 340),
stepsize = c(1.2, 15), experiments = 16)
plot(x = simplex)