Learn R Programming

icosa (version 0.11.1)

gridlabs3d: Display the names of the grid elements in 3d plots.

Description

This function will display the names of vertices, faces and edges on 3d plots.

Usage

gridlabs3d(gridObj, ...)

# S4 method for trigrid gridlabs3d(gridObj, type = "f", ...)

# S4 method for hexagrid gridlabs3d(gridObj, type = "f", ...)

Value

The function does not return any value.

Arguments

gridObj

(trigrid, hexagrid) An icosahedral grid.

...

Additional arguments passed to text3d function of the rgl package.

type

(character) Vector containing either "f", "e" or "v", rendering the names of either the faces, edges or vertives respectively.

Examples

Run this code
# create a hexagonal grid
g <- hexagrid(c(2,2))
# plot the grid in 3d space
# lines3d(g, guides=FALSE)
# labels
# gridlabs3d(g)

Run the code above in your browser using DataLab