layout.cna(x, pdb, renumber=TRUE, k=2, full=FALSE)
The community residue membership are typically taken from the input network object but can be supplied as a list object with 'x$communities$membership'.
plot.cna
, plot.communities
,
igraph.plotting
,
plot.igraph
# Load the correlation network
attach(hivp)
# Read the starting PDB file to determine atom correspondence
pdbfile <- system.file("examples/hivp.pdb", package="bio3d")
pdb <- read.pdb(pdbfile)
# Plot will be slow
#xy <- plot.cna(net)
#plot3d.cna(net, pdb)
layout.cna(net, pdb, k=3)
layout.cna(net, pdb)
# can be used as input to plot.cna and plot3d.cna....
# plot.cna( net, layout=layout.cna(net, pdb) )
# plot3d.cna(net, pdb, layout=layout.cna(net, pdb, k=3))
detach(hivp)
Run the code above in your browser using DataLab