Add a box to an r3js plot

box3js(
  data3js,
  sides = c("x", "y", "z"),
  dynamic = TRUE,
  col = "grey80",
  geometry = FALSE,
  renderOrder = 1,
  ...
)

Arguments

data3js

The data3js object

sides

The axis side to show the box, any combination of "x", "y" or "z"

dynamic

Should edges of the box closest to the viewer hide themselves automatically

col

Box color

geometry

Should the box be rendered as a physical geometry in the scene (see lines3js())

renderOrder

The render order for the box, defaults to 1

...

Other arguments to pass to material3js()

Value

Returns an updated data3js object

See also

Examples

p <- plot3js.new()
p <- box3js(p)
r3js(p)