add_origin_axes: Draw colored axis lines

Description Usage Arguments Value

View source: R/add_origin_axes.R

Description

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.

Usage

 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
)

Arguments

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 rgl::rgl.material())

Value

No return value; function is called for its side-effect of rendering the axes in the existing viewer window.


evanmascitti/soilmesh documentation built on Sept. 30, 2021, 7:57 a.m.