visualize(...)## S3 method for class 'coords':
visualize(x, elename = NULL, cryst1 = NULL, conect = NULL,
type = "l", xyz = NULL, abc = NULL, pbc.box = NULL, lwd = 2,
lwd.xyz = lwd, lwd.abc = lwd, lwd.pbc.box = lwd,
cex.xyz = 2, cex.abc = 2, col = NULL, bg = "#FAFAD2", radii = "rvdw",
add = FALSE, windowRect = c(0,0,800,600), FOV = 0, userMatrix=diag(4), ...)
## S3 method for class 'data.frame':
visualize(x, elename = NULL, cryst1 = NULL, conect = NULL,
type = "l", xyz = NULL, abc = NULL, pbc.box = NULL, lwd = 2,
lwd.xyz = lwd, lwd.abc = lwd, lwd.pbc.box = lwd,
cex.xyz = 2, cex.abc = 2, col = NULL, bg = "#FAFAD2", radii = "rvdw",
add = FALSE, windowRect = c(0,0,800,600), FOV = 0, userMatrix=diag(4), ...)
## S3 method for class 'matrix':
visualize(x, elename = NULL, cryst1 = NULL, conect = NULL,
type = "l", xyz = NULL, abc = NULL, pbc.box = NULL, lwd = 2,
lwd.xyz = lwd, lwd.abc = lwd, lwd.pbc.box = lwd,
cex.xyz = 2, cex.abc = 2, col = NULL, bg = "#FAFAD2", radii = "rvdw",
add = FALSE, windowRect = c(0,0,800,600), FOV = 0, userMatrix=diag(4), ...)
## S3 method for class 'atoms':
visualize(x, cryst1 = NULL, conect = NULL,
type = "l", xyz = NULL, abc = NULL, pbc.box = NULL, lwd = 2,
lwd.xyz = lwd, lwd.abc = lwd, lwd.pbc.box = lwd,
cex.xyz = 2, cex.abc = 2, col = NULL, bg = "#FAFAD2", radii = "rvdw",
add = FALSE, windowRect = c(0,0,800,600), FOV = 0, userMatrix=diag(4), ...)
## S3 method for class 'pdb':
visualize(x, type = "l", xyz = NULL, abc = NULL, pbc.box = NULL, lwd = 2,
lwd.xyz = lwd, lwd.abc = lwd, lwd.pbc.box = lwd,
cex.xyz = 2, cex.abc = 2, col = NULL, bg = "#FAFAD2", radii = "rvdw",
add = FALSE, windowRect = c(0,0,800,600), FOV = 0, userMatrix=diag(4), ...)
cryst1conecttype = "l" (see details).rgl.cur and open3d).par3d).par3d).type="p": Points are drawn at each atomic positions (very light visualization mode).type="l": Lines are drawn between bonded atoms. The connectivity of the system has to be specifyed.type="s": Spheres are drawn at each atomic positions (heavy visualization mode).
The radii of the spheres are given byradii.radii="rcov": Covalent radii, taken from theelementsdata set, are used.radii="rvdw": Van der Waals radii, taken from theelementsdata set, are used.radiiis a numeric vector: The numeric values are used to assign to each atom a radius. Iflength(radii) != natom(pdb)radiiis recycled.xyz, abc or pbc.box are NULL, the axis or pbc box are are added depending if a addXYZ, addABC, addPBCBox, par3d, select3dx <- read.pdb(system.file("examples/PCBM_ODCB.pdb",package="Rpdb"))
visualize(x, type = "l")
visualize(x, type = "s", radii = "rcov")
visualize(x, type = "s", radii = "rvdw")
visualize(x, type = "p")
visualize(x, xyz = TRUE, abc = FALSE, pbc.box = FALSE)
visualize(subset(x, resid != 1), type = "l")
visualize(subset(x, resid == 1), type = "s", add = TRUE)Run the code above in your browser using DataLab