Learn R Programming

Rpdb (version 2.0)

addXYZ: Add Cartesian Axes to the rgl Scene

Description

Add Cartesian axes to the current rgl scene.

Usage

addXYZ(lwd = 2, labels = TRUE, cex = 2)

Arguments

lwd
a numeric value indicating the line width used to draw the axes.
labels
a logical value indicating whether the labels of the axes have to bo drawn.
cex
a numeric value indicating the magnification used to draw the labels of the axes.

Value

  • Return (using invisible) a two-column data.frame containing the IDs and type indicators of the objects added to the scene.

Details

Add the Cartesian axes x, y and z to the current rgl device.

See Also

addABC, addPBCBox, visualize, rgl.cur, par3d

Examples

Run this code
x <- read.pdb(system.file("examples/PCBM_ODCB.pdb",package="Rpdb"))
visualize(x, type = "l")
addXYZ()

Run the code above in your browser using DataLab