Description Usage Arguments Value Examples
Draws a sphere around a center point in 3D space.
1 | draw_sphere(centerx, centery, centerz, radius, phires = 10L, thetares = 10L)
|
centerx |
x axis value of sphere center point |
centery |
y axis value of sphere center point |
centerz |
z axis value of sphere center point |
radius |
sphere radius |
phires |
phi resolution (default = 10) |
thetares |
theta resolution (default = 10) |
data.frame with the spatial coordinates of the resulting points
1 2 3 4 5 6 7 8 9 10 11 | sphere <- draw_sphere(
centerx = 4,
centery = 5,
centerz = 1,
radius = 3,
phires = 20,
thetares = 20
)
#library(rgl)
#plot3d(sphere)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.