translate | R Documentation |
The function translates the coordinates of a grid object with the specified 3d vector.
translate(gridObj, vec)
## S4 method for signature 'trigrid,numeric'
translate(gridObj, vec)
## S4 method for signature 'hexagrid,numeric'
translate(gridObj, vec)
gridObj |
( |
vec |
( |
The same grid structure as the input, but with translated coordinates.
# create a grid and plot it
g <- trigrid(3)
# lines3d(g)
# translate the grid to (15000,15000,15000)
g2 <- translate(g, c(15000,15000,15000))
# lines3d(g2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.