Produces a 3D convex hull in tetrahedral color space when plotting a non-interactive tetrahedral plot.

vol(tcsdata, alpha = 0.2, grid = TRUE, fill = TRUE, new = FALSE,
  ...)

Arguments

tcsdata

(required) a data frame, possibly a result from the colspace or tetraspace function, containing values for the 'x', 'y' and 'z' coordinates as columns (labeled as such).

alpha

transparency of volume (if fill = TRUE).

grid

logical. if TRUE (default), draws the polygon outline defined by the points.

fill

logical. if TRUE (default), fills the volume defined by the points.

new

logical. Should a new plot be started or draw over an open plot? (defaults to FALSE)

...

additional graphical options. See polygon and tetraplot.

Value

vol creates a 3D convex hull within a static tetrahedral plot.

Examples

# For plotting data(sicalis) vis.sicalis <- vismodel(sicalis, visual = "avg.uv") tcs.sicalis <- colspace(vis.sicalis, space = "tcs") plot(tcs.sicalis)
vol(tcs.sicalis)