Description Usage Arguments Details Value Author(s) Examples
This function can plot and return multiple sparse graphs distinguished by edge colors from the result generated by jgl
1 2 3 4 |
x |
output generated from jgl function (jgl class) |
type |
type of graph. There are four options:
|
neighbouroption |
determines what type of graph to zoom into when parameter "type" is "neighbour". There are two options:
|
subID |
selects which task to display. There are four options:
|
index |
determines which node(s) to zoom into when parameter "type" is "neighbour". This parameter could either be an integer or vector of integers representing node ids (zoom into one node or multiple nodes) |
hastitle |
determines whether the graph title is displayed or not (TRUE to display / FALSE to hide) |
haslegend |
determines whether the graph legend is displayed or not (TRUE to display / FALSE to hide) |
... |
extra parameters passed to plot.igraph() and legend() (only the argument "legend" for legend() is available).
Please see |
when only the jgl result is provided, the function will plot all graphs with default numeric labels User can specify multiple subID and multiple index to zoom in multiple nodes on multiple graphs Each graph will include a descriptive title and legend to indicate correspondence between edge color and task.
a plot of graph / subgraph from jgl result specified by user input
Beilun Wang, Zhaoyang Wang (Author), Zhaoyang Wang (maintainer) zw4dn@virginia.edu
1 2 3 4 | library(JointNets)
data(exampleData)
result = jgl(exampleData,0.1,0.5)
plot(result)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.