Description Usage Arguments How to use it Examples
Creates a two-dimensional plot of a social-network graph.
1 2 | drawGraph(dnet, communities = T, design = layout.auto, color = "darkred",
labelSize = 0.5, nodeSize = 3)
|
dnet |
A docNetwork object |
communities |
Logical. If TRUE (default), the function will use the
communities data in |
design |
Options for the design of the graph layout. All options inherited
from the |
color |
A string that defines the color of the nodes in the graph, if you want all nodes to be a single color. Default is dark red. |
labelSize |
A numeric value that sets the size of the labels for the nodes. To remove the labels altogether (often necessary for larger graphs), just set the size to 0. |
nodeSize |
A numeric value that sets the size of the nodes. |
sub |
Logical. If true, only a subset of the graph will be printed. |
drawGraph
offers only a few options regarding layout. It's designed
to generate easy-to-read results quickly. More advanced plotting
options are available directly through igraph
.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.