phangorn (version 2.5.5)

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, ...)

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.

Value

identify.networx returns a splits object.

See Also

plot.networx, identify

Examples

Run this code
# NOT RUN {
data(yeast)
dm <- dist.ml(yeast)
nnet <- neighborNet(dm)
plot(nnet, "2D")
identify(nnet) # click close to an edge
# }

Run the code above in your browser using DataLab