lines3d | R Documentation |
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.