# plotSimplex3D: Draws a three dimentional plot of the vertexes in a simplex In labsimplex: Simplex Optimization Algorithms for Laboratory and Manufacturing Processes

## 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

 ```1 2``` ```plotSimplex3D(simplex, sel.dim = NULL, all.ver = TRUE, all.lin = TRUE, main = NULL, angle = 30, ...) ```

## Arguments

 `simplex` object of class `smplx` with the simplex information. See `labsimplex` `sel.dim` `numeric` or `char` vector for variables to be considered when simplex dimensionality is higher than 3. By default, the first three are chosen. If the vector is `numeric`, it must contain the ordinal numbers corresponding to the desired variables. If the vector is of class `char`, it must contain the names of such dimensions. `all.ver` logical default to `TRUE`. Should all vertexes be plotted? If `FALSE`, the function draws only the vertexes of the current simplex. `all.lin` logical default to `TRUE`. Should all lines be drawn? If `FALSE`, the function draws only the lines of the last simplex. `main` title for the plot. `angle` angle for perspective between x and y axis. `...` other arguments passed to `scatterplot3d`

## Value

3D plot of the simplex coordinates.

## Author(s)

Cristhian Paredes, craparedesca@unal.edu.co

Jesús Ágreda, jagreda@unal.edu.co

`plot.smplx`
 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16``` ``` 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) ```