Description Usage Arguments Value Author(s) Examples
Visualise 3d point as voxel. Usage with rgl: open3d(); cube3d(1,1,1,...)
1 2 3 4 5 6 7 8 9 10 11 12 13 | xyz2cube3d(
x = 0,
y = 0,
z = 0,
bordered = TRUE,
filled = TRUE,
lwd = 2,
scale = 1,
fillcol = "gray",
bordercol = "black",
alpha = 0.5,
...
)
|
x |
x coordinate |
y |
y coordinate |
z |
z coordinate |
bordered |
Logical, Draws a border |
filled |
Logical, Fills the cube with a color |
lwd |
Line width of the border. Default 2 |
scale |
Size of the cube, e.g. 0.1 when 10 cm voxels are used. Default 1 (meter). |
fillcol |
## Color of the cube. Default gray. |
bordercol |
Color of the border |
alpha |
Transparancy of the cube |
A cube object that can be plotted with rgl
Matthias Kunz, last updated: 18.02.2020
1 | xyz2cube3d(data.frame(x=runif(20),y=runif(20), z=runif(20)), alpha=1.0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.