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