axis3js: Add an axis to an r3js plot

View source: R/3JSaxes.R

axis3jsR 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()


r3js documentation built on March 31, 2023, 7:23 p.m.