turn3d | R Documentation |
This function “turns” the curve (as on a lathe) to form a solid of rotation along the x axis.
turn3d(x, y = NULL, n = 12, smooth = FALSE, ...)
x , y |
Points on the curve, in a form suitable for |
n |
How many steps in the rotation? |
smooth |
logical; whether to add normals for a smooth appearance. |
... |
Additional parameters to pass to |
A mesh object containing triangles and/or quadrilaterals.
Fang He and Duncan Murdoch
extrude3d
x <- 1:10
y <- rnorm(10)^2
open3d()
shade3d(turn3d(x, y), col = "green")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.