Learn R Programming

pavo (version 2.3.0)

vol: Plot a tetrahedral colour space

Description

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

Usage

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

Arguments

tcsdata

(required) a data frame, possibly a result from the colspace() or tcspace() 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

Run this code
# NOT RUN {
# For plotting
data(sicalis)
vis.sicalis <- vismodel(sicalis, visual = "avg.uv")
tcs.sicalis <- colspace(vis.sicalis, space = "tcs")
plot(tcs.sicalis)
vol(tcs.sicalis)
# }

Run the code above in your browser using DataLab