Description Usage Arguments Author(s) See Also Examples
View source: R/NavGraphHandler.R
If you create a path outside the navGraph session, you can let navGraph walk you path.
A path has to be a sequence of node names of adjoining nodes in the current shown graph.
If a path has been walked through, it gets added to the
activePath
in the path tool of the running navGraph session.
1 | ng_walk(nghandler, path)
|
nghandler |
navGraph handler of a running navGraph session. |
path |
Vector of node names that are adjoining in the current graph. A single character string with the node names separated by a space also works. |
Adrian Waddell and R. Wayne Oldford
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Define a NG_data object
ng.iris <- ng_data(name = "iris", data = iris[,1:4],
shortnames = c('s.L', 's.W', 'p.L', 'p.W'))
## start a navGraph session
nav <- navGraph(ng.iris)
## Find linegraph
LG <- linegraph(completegraph(shortnames(ng.iris)))
## find a path
library(PairViz)
path = eulerian(LG)
## walk the path
ng_walk(nav,path)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.