"identify"(x, labels=NULL, cna=NULL, ...)
identify.cna reads the position of the graphics pointer when the (first) mouse button is pressed. It then searches the coordinates given in x for the point closest to the pointer. If this point is close enough to the pointer, its index and community members will be returned as part of the value of the call and the community members will be added as labels to the plot.
This function calls the identify and summary.cna functions to query and label 2D CNA protein structure network plots produced by the plot.cna function. Clicking with the mouse on plot points will add the corresponding labels and them to the plot and returned list object. A click with the right mouse button will stop the function.
attach(hivp) # Read the starting PDB file to determine atom correspondence pdbfile <- system.file("examples/hivp.pdb", package="bio3d") pdb <- read.pdb(pdbfile) # Plot the network xy <- plot.cna(net)Obtaining estimated layout with fruchterman.reingold# Use identify.cna on the communities ## <strong>Not run</strong>: # d <- identify.cna(xy, cna=net) # ## <strong>End(Not run)</strong> # Right click to end the function... ## d <- identify(xy, summary(net)$members) detach(hivp)