Description Usage Arguments Examples

Takes an appropriately structured JSON file or a square symmetric matrix (e.g. a correlation matrix or precision matrix) and outputs a circle plot with the nodes around the circumfrence and linkages between the connected nodes. Adapted from the Mike Bostock's D3 Hierarchical Edge Bundling example using the htmlwidgets framework.

1 2 | ```
edgebundle(x, tension = 0.5, cutoff = 0.1, width = NULL, fontsize = 14,
padding = 100, nodesize = c(5, 20), directed = FALSE)
``` |

`x` |
an appropriately structured JSON file (see vignette for details) or a square symmetric matrix (e.g. correlation matrix) or an igraph object. |

`tension` |
numeric between 0 and 1 giving the tension of the links |

`cutoff` |
numeric giving the threshold dependence for linkages to be plotted |

`width` |
the width of the plot when viewed externally |

`fontsize` |
font size of the node labels |

`padding` |
the padding (in px) between the inner radius of links and the edge of the plot. Increase this when the labels run outside the edges of the plot. Default: 100. |

`nodesize` |
two element vector of the min and max node size to scale the node circle size. If a size is not provided for each node, then the node size will be the max node size provided in this argument. Default: c(5,20). |

`directed` |
whether or not the graph is directed. Does not work yet. Need to think about how to implement this cleanly. |

1 2 3 4 5 6 | ```
## Not run:
require(igraph)
ws_graph = watts.strogatz.game(1, 50, 4, 0.05)
edgebundle(ws_graph,tension = 0.1,fontsize = 20)
## End(Not run)
``` |

garthtarr/edgebundleR documentation built on Sept. 16, 2017, 11:07 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.