draw.tpolytope | R Documentation |
This command draws a three dimensional tropical polytope
draw.tpolytope.3d(D, col_lines, col_verts, plot = TRUE, tadd = max)
draw.tpolytope.2d(D, col_lines, col_verts, plot = TRUE, tadd = max)
D |
matrix of vertices of a tropical polytope; rows are the vertices |
col_lines |
string; color to render the polytope. |
col_verts |
string; color to render the vertices. |
plot |
logical; initiate new plot visualization or not. |
tadd |
function; max indicates max-plus addition, min indicates min-plus addition. Defaults to max |
2-D or 3-D rendering of a tropical polytope.
Ruriko Yoshida ryoshida@nps.edu
D <-matrix(c(0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),4,4,TRUE)
col_lines<-'blue'
col_verts<-'red'
draw.tpolytope.3d(D,col_lines,col_verts,plot=TRUE)
draw.tpolytope.3d(D,col_lines,col_verts,plot=TRUE,tadd=min)
D <- matrix(c(0,-2,2,0,-2,5,0,2,1,0,1,-1),4,3,TRUE)
col_lines <- 'blue'
col_verts <- 'red'
draw.tpolytope.2d(D,col_lines,col_verts,plot=TRUE)
draw.tpolytope.2d(D,col_lines,col_verts,plot=TRUE,tadd=min)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.