addAxes: Add Axes or PBC Box to the 'rgl' Scene

Description Usage Arguments Details Value See Also Examples

Description

Add lattice vectors, Cartesian axes or PBC box to the current ‘rgl’ scene.

Usage

1
2
3
addABC(x, lwd = 2, labels = TRUE, cex = 2)
addXYZ(lwd = 2, labels = TRUE, cex = 2)
addPBCBox(x, lwd = 2)

Arguments

x

an object of class ‘cryst1’ containing unit cell parameters.

lwd

a numeric value indicating the line width used to draw the axes or the PBC box.

labels

a logical value indicating whether the labels of the axes have to be drawn.

cex

a numeric value indicating the magnification used to draw the labels of the axes.

Details

addABC: Add the lattice vectors a, b and c to the current rgl device.
addXYZ: Add the Cartesian axes x, y and z to the current rgl device.
addPBCBox: Add a box representing the Periodic Boundary Conditions of a molecular system.

Value

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

See Also

visualize, rgl.cur, par3d, addLabels

Examples

1
2
3
4
5
x <- read.pdb(system.file("examples/PCBM_ODCB.pdb",package="Rpdb"))
visualize(x, type = "l", xyz = FALSE, abc = FALSE, pbc.box = FALSE, mode = NULL)
addXYZ()
addABC(x$cryst1)
addPBCBox(x$cryst1)


Search within the Rpdb package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.