sc-plot: Plotting simplicial complexes

Description Usage Arguments Examples

Description

These functions use igraph::igraph.plotting functionality to plot a simplicial complex, i.e. a bipartite igraph::igraph object prefixed with class 'sc'.

Usage

1
2
3
## S3 method for class 'sc'
plot(x, simplex.colors = "viridis", simplex.alpha = 0.5,
  layout = layout_with_fr, ...)

Arguments

x

Bipartite igraph::igraph object, representing a simplicial complex.

simplex.colors

Character; the color palette from which to assign colors to the simplices (by dimension). Matched to one of the viridis palettes ("viridis", "magma", "plasma", "inferno") or "gray.colors".

simplex.alpha

Numeric value between 0 and 1 indicating the transparency of the simplices.

layout

A igraph::layout function, or the result of such a function on the projection of the simplicial complex x.

...

Additional parameters passed to other graphics::plot() methods.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# load data
data(wiki_sc)
# inspection and visualization
print(wiki_sc)
plot(wiki_sc, vertex.label = NA)
# vertices and simplices
sc_vertices(wiki_sc)
sc_simplices(wiki_sc)
sc_vertices(wiki_sc, simplices = letters[1:3])
sc_simplices(wiki_sc, vertices = 1:5)

corybrunson/sc documentation built on Aug. 27, 2019, 1:12 p.m.