Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

viewAxis

Set the View of the ‘rgl’ Scene


Description

Set the view of the current ‘rgl’ scene aligning one vector perpendicularly to the screen and placing another in the horizontal plan.

Usage

viewAxis(V1, V2)

viewXY()

viewYZ()

viewZX()

viewAB(cryst1)

viewBC(cryst1)

viewCA(cryst1)

viewInertia(x, m = NULL)

Arguments

V1

a length 3 numeric vector.

V2

a length 3 numeric vector.

cryst1

an object of class ‘cryst1’.

x

an R object containing atomic coordinates.

m

a numeric vector containing atomic masses.

Details

viewAxis set the view of the current rgl scene (by setting UserMatrix. See par3d for more details) so that V1 is perpendicular to the screen and V2 is in the horizontal plan. The other functions documented here are helper functions calling viewAxis to set the view using particular Cartesian or lattice vectors. For functions viewAB, viewBC and viewCA a ‘cryst1’ object has to be specifyed to defined the lattice vectors used to set the view. The function viewInertia computes the inertia tensor from atomic coordinates and masses (see inertia) and set the view to its eigen vectors basis set.

See Also

Examples

x <- read.pdb(system.file("examples/PCBM_ODCB.pdb",package="Rpdb"))
visualize(x, mode = NULL)
viewAB(x$cryst1)

C70 <- read.pdb(system.file("examples/C70.pdb",package="Rpdb"))
visualize(C70, mode = NULL)
viewXY()
viewInertia(C70)

Rpdb

Read, Write, Visualize and Manipulate PDB Files

v2.3
GPL
Authors
Julien Idé
Initial release
2014-02-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.