Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/plot.hypergraph.R
Plot a hypergraph using the igraph plot function.
1 2 3 4 | ## S3 method for class 'hypergraph'
plot(x, edge.color = NA,
mark.groups=hypergraph_as_edgelist(h),
layout,...)
|
x |
a hypergraph. |
edge.color |
color for the edges. |
layout |
optional layout for the plot. If the hypergraph has a layout attribute, this will be used, unless layout is given. if it does not have a layout attribute and the layout is not provided, it uses the code from igraph to choose a layout. |
mark.groups |
the groups correspond to the hyper-edges. Set this to NULL if you do not want the hyper-edge polygons to plot. |
... |
optional arguments passed to plot. |
Plots the hypergraph, using the igraph plotting function applied to a graph converted from the hypergraph. For the example below, the plot will look something like:
the layout is returned invisibly.
David J. Marchette dmarchette@gmail.com
as.graph
,
plot.igraph
,
igraph.plotting
.
1 2 3 | h <- hypergraph_from_edgelist(list(3:7,8:12,c(1,3,9)))
plot(h)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.