plotSimplex3D {labsimplex} | R Documentation |
Draws a three dimentional plot of the vertexes in a simplex
Description
The function generates a 3D plot of the vertexes in a simplex optimization when simplex dimensionality is at least 3. When dimensionality is higher than 3, the plot produced is a projection of the selected variables.
Usage
plotSimplex3D(simplex, sel.dim = NULL, all.ver = TRUE, all.lin = TRUE,
main = NULL, angle = 30, ...)
Arguments
simplex |
object of class |
sel.dim |
|
all.ver |
logical default to |
all.lin |
logical default to |
main |
title for the plot. |
angle |
angle for perspective between x and y axis. |
... |
other arguments passed to
|
Value
3D plot of the simplex coordinates.
Author(s)
Cristhian Paredes, craparedesca@unal.edu.co
Jesús Ágreda, jagreda@unal.edu.co
See Also
Examples
plotSimplex3D(simplex = labsimplex(n = 3, centroid = c(350, 11, 0.7),
stepsize = c(10, 0.5, 0.1),
var.name = c('temperature', 'pH',
'concentration')))
## Several options are posible when visualizing higher order simplexes
plotSimplex3D(simplex = labsimplex(n = 8))
plotSimplex3D(simplex = labsimplex(n = 8), sel.dim = c(4, 6, 8))
## Simplex movements can be visualized after some experiments has been
## performed
simplex <- exampleOptimization(surface = exampleSurfaceR3,
centroid = c(350, 11, 0.7),
stepsize = c(10, 0.5, 0.1),
experiments = 18)
plotSimplex3D(simplex = simplex, angle = 80)