Learn R Programming

phangorn (version 2.11.1)

identify.networx: Identify splits in a network

Description

identify.networx reads the position of the graphics pointer when the mouse button is pressed. It then returns the split belonging to the edge closest to the pointer. The network must be plotted beforehand.

Usage

# S3 method for networx
identify(x, quiet = FALSE, ...)

Value

identify.networx returns a splits object.

Arguments

x

an object of class networx

quiet

a logical controlling whether to print a message inviting the user to click on the tree.

...

further arguments to be passed to or from other methods.

Author

Klaus Schliep klaus.schliep@gmail.com

See Also

plot.networx, identify

Examples

Run this code
if (FALSE) {
data(yeast)
dm <- dist.ml(yeast)
nnet <- neighborNet(dm)
plot(nnet)
identify(nnet) # click close to an edge
}

Run the code above in your browser using DataLab