Learn R Programming

Rpdb (version 2.0)

addABC: Add Lattice Vectors to the rgl Scene

Description

Add lattice vectors to the current rgl scene.

Usage

addABC(x, lwd = 2, labels = TRUE, cex = 2)

Arguments

x
an object of class cryst1 containing unit cell parameters.
lwd
a numeric value indicating the line width used to draw the lattice vectors.
labels
a logical value indicating whether the labels of the lattice vectors have to be drawn.
cex
a numeric value indicating the magnification used to draw the labels of the lattice vectors.

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 lattice vectors a, b and c to the current rgl device.

See Also

addXYZ, addPBCBox, visualize, rgl.cur, par3d

Examples

Run this code
x <- read.pdb(system.file("examples/PCBM_ODCB.pdb",package="Rpdb"))
visualize(x, type = "l", abc = FALSE, pbc.box = FALSE)
addABC(x$cryst1)

Run the code above in your browser using DataLab