| ggplot.igraph | R Documentation |
Plot an igraph object
## S3 method for class 'igraph'
ggplot(
data = NULL,
mapping = aes(),
layout = "nicely",
...,
environment = parent.frame()
)
## S3 method for class 'mechgraph'
ggplot(
data = NULL,
mapping = aes(),
layout = "nicely",
...,
environment = parent.frame()
)
data |
an igraph object (or a mechgraph object for the
|
mapping |
default aesthetics, default is |
layout |
network layout. Supported values are the layout names
handled by layout_circular, layout_linear, layout_fishbone and other
ggtangle/igraph layouts, or a custom layout function. Default is
|
... |
additional parameters passed to the layout function. |
environment |
environment in which to evaluate the mapping, default is
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.