Description Usage Arguments Value
View source: R/add_origin_axes.R
rgl graphics device does not support axis lines such as those seen in MeshLab. This function makes it simple to verify where the origin (i.e. 0,0,0) lies in the viewer.
1 2 3 4 5 6 7 8 9 10 11 12 | add_origin_axes(
xmin = -80,
xmax = 80,
ymin = -80,
ymax = 80,
zmin = -80,
zmax = 80,
xcol = "red",
ycol = "darkgreen",
zcol = "darkblue",
lwd = 5
)
|
xmin, xmax |
minimum and maximum extents of the lines in x direction |
ymin, ymax |
minimum and maximum extents of the lines in y direction |
zmin, zmax |
minimum and maximum extents of the lines in z direction |
xcol, ycol, zcol |
colors for each line; specify with a quoted color name or hex code |
lwd |
width of lines (see |
No return value; function is called for its side-effect of rendering the axes in the existing viewer window.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.