powered by
This function constructs a visualization of a 2D or 3D tropical ball
Trop_ball( v, d, a = 1, cls = "black", cent.col = "black", fil = TRUE, plt = TRUE, bord = "black" )
2D or 3D visualization of tropical ball
center of tropical ball; numeric vector of length 3 or 4
radius of tropical ball
shading level; 1 is opaque
string indicating color of interior of ball
string indicating color of center point
logical for 3D plots; if TRUE 2D facets of 3D ball fill in color of cls parameter
logical; indicates plot a new object; defaults to TRUE; if FALSE, overlays the ball on existing plot
string indicating color of border of ball (only for 2D plots)
David Barnhill david.barnhill@nps.edu
v <-c(0,0,0) d <- 2 Trop_ball(v,d,a=.1,cls='white',cent.col='black',fil=TRUE,plt=TRUE,bord='black') v <-c(0,0,0,0) d <- 2 Trop_ball(v,d,a=1,cls='red',cent.col='black',fil=FALSE,plt=TRUE)
Run the code above in your browser using DataLab