Methods of 3d line plotting
This is a generic function used to plot the edge lines of either a trigrid
or a hexagrid
object, a facelayer
, or Spatial
objects in 3d space. The method is also implemented for
the object classes defined by the package 'sp'.
lines3d ## S4 method for signature 'trigrid' lines3d(x, arcs = FALSE, ...) ## S4 method for signature 'Line' lines3d(x, radius = authRadius, ...) ## S4 method for signature 'Lines' lines3d(x, radius = authRadius, ...) ## S4 method for signature 'SpatialLines' lines3d(x, radius = authRadius, ...) ## S4 method for signature 'SpatialLinesDataFrame' lines3d(x, radius = authRadius, ...) ## S4 method for signature 'Polygon' lines3d(x, radius = authRadius, ...) ## S4 method for signature 'Polygons' lines3d(x, radius = authRadius, ...) ## S4 method for signature 'SpatialPolygons' lines3d(x, radius = authRadius, ...) ## S4 method for signature 'SpatialPolygonsDataFrame' lines3d(x, radius = authRadius, ...)
x |
|
arcs |
|
... |
Further graphical parameters passed to (see |
radius |
( |
An object of class nonstandardGenericFunction
of length 1.
The function is built on the openGL renderer of the R package rgl
, which needs to be installed for the function to run. Although the function is works without attaching rgl, note that if you want to attach both icosa
and rgl
,the rgl
package has to be loaded ifrst otherwise the function will not be usable.
The function does not return any value.
# create a hexagonal grid g <- hexagrid(c(2,2)) # plot the grid in 3d space # lines3d(g, col="blue")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.