axis3js {r3js}R Documentation

Add an axis to an r3js plot

Description

This is used as part of the plot3js() function but can be called separately to add an axis, generally in combination after other lower level functions like plot3js.new() and plot3js.window().

Usage

axis3js(
  data3js,
  side,
  at = NULL,
  labels = NULL,
  cornerside = "f",
  labeloffset = 0.1,
  ...
)

Arguments

data3js

The data3js object

side

The axis side, either "x", "y" or "z"

at

Where to draw labels

labels

Vector of labels to use

cornerside

See material3js()

labeloffset

Amount of offset of axis labels from the edge of the plot

...

Other arguments to pass to material3js()

Value

Returns an updated data3js object

See Also

Other plot components: arrows3js(), box3js(), grid3js(), legend3js(), light3js(), lines3js(), mtext3js(), points3js(), segments3js(), shape3js(), sphere3js(), surface3js(), text3js(), triangle3js()


[Package r3js version 0.0.2 Index]