Description Usage Arguments Value Author(s) See Also Examples
scagGraph
is useful to turn the output of
scagEdgeWeights
into a list of graphs.
1 | scagGraph(edgeWeights, topFrac = 0.2)
|
edgeWeights |
List returned by the |
topFrac |
Keep the nodes with the |
graph object or a list of graph objects.
Adrian Waddell and R. Wayne Oldford
navGraph
, scagNav
, scagEdgeWeights
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | data(olive)
ng.olive <- ng_data(name = "Olive",
data = olive[,-c(1,2)],
shortnames = c("p1","p2","s","ol","l1","l2","a","e"),
group = as.numeric(olive$Area)+1
)
edgeWts <- scagEdgeWeights(data = ng.olive,
scags = c("Clumpy", "Skinny"))
G1 <- scagGraph(edgeWts, topFrac = 0.2)
edgeWts <- scagEdgeWeights(data = ng.olive,
scags = c("Clumpy", "Skinny"),
combineFn = max)
G2 <- scagGraph(edgeWts, topFrac = 0.1)
## Now you can start a navGraph session
nav <- navGraph(ng.olive, G1)
nav <- navGraph(ng.olive, G2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.