decorate3d: Add decorations to a 3D plot

Description Usage Arguments Value Examples

View source: R/plot3d.R

Description

decorate3d adds the usual decorations to a plot: labels, axes, etc.

Usage

1
2
3
4
5
decorate3d(xlim = NULL, ylim = NULL, zlim = NULL, 
           xlab = "x", ylab = "y", zlab = "z", 
           box = TRUE, axes = TRUE, 
           main = NULL, sub = NULL, 
           top = TRUE, aspect = FALSE, expand = 1.03, ...)

Arguments

xlim, ylim, zlim

These are used for the labels.

xlab, ylab, zlab

labels for the coordinates.

box, axes

whether to draw a box and axes.

main, sub

main title and subtitle.

top

whether to bring the window to the top when done.

aspect

either a logical indicating whether to adjust the aspect ratio, or a new ratio.

expand

how much to expand the box around the data, if it is drawn.

...

ignored.

Value

The RGL id values for those items.

Examples

1
2
3
open3d()
shade3d(tetrahedron3d(), col = "red")
decorate3d(main = "A Tetrahedron")

Example output

Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl.init' failed, running with 'rgl.useNULL = TRUE'. 
null 
   1 

rgl documentation built on April 23, 2021, 5:06 p.m.