makeVolumeSet: Build a set of regular volumes

Description Usage Arguments Details Value Examples

Description

To do.

Usage

1
makeVolumeSet(x, y, z, intervals = rep(1, 3), label = "auto")

Arguments

x, y, z

Vectors of length two containing the min and max values for each dimension.

intervals

A numeric vector of length 3, with numbers (greater than or equal to 1) giving the numbers of intervals into which x, y ans z are to be cut.

label

Do the volumes need to be labelized? Either "auto" or a character vector of length equals to the number of volumes must be provided.

Details

Note that the plotting process may be time-consuming with a large number of polygons. Consider using the parameter fraction to plot only a random subset of all the polygons. You can have only one volume in your set of volumes.

Value

An object of class c("VolumeSet", "data.frame").

Examples

1
2
3
4
5
6
7
rangeDim <- function(can, dim) {
    range(sapply(can$vertices, function(i) range(i[, dim])))
}
volumes <- makeVolumeSet(rangeDim(plants, "x"),
                         rangeDim(plants, "y"),
                         rangeDim(plants, "z"),
                         intervals = rep(3, 3))

chgigot/canis documentation built on May 13, 2019, 3:56 p.m.