Description Usage Arguments Details Examples
Takes value from extractNetwork
function and visualizes network
using networkD3.
1 2 | plotNetwork(nodes, edges, file = "network.html", width = 550,
height = 400, opacity = 0.75, fontsize = 10, charge = -500, ...)
|
nodes |
Data frame with node information returned by |
edges |
Data frame with edge list returned by |
file |
File where network visualization will be exported to. |
width |
numeric width for the network graph's frame area in pixels |
height |
numeric height for the network graph's frame area in pixels. |
opacity |
numeric value of the proportion opaque you would like the graph elements to be. |
fontsize |
numeric font size in pixels for the node text labels. |
charge |
numeric value indicating either the strength of the node repulsion (negative value) or attraction (positive value). |
... |
Other options to pass to #' |
plotNetwork
1 2 3 4 5 6 7 | ## Not run:
## Download Google Scholar network data for a sample user
d <- extractNetwork(id="jGLKJUoAAAAJ", n=500)
## Plot network into file called \code{network.html}
plotNetwork(d$nodes, d$edges, file="network.html")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.