Note: Development of this package has been discontinued. A convenient, elegant, and compact R package for analyzing simplicial complexes can be found in Matt Piekenbrock's simplextree.
knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
sc is a convenience package for encoding simplicial complexes in R as bipartite graphs using the igraph package. It is intended for temporary use, until superior functionality and perforance are achieved by other medium-level packages, for example an R interface to the GUDHI C++ library --- or until i become aware of them!
Install the package from GitHub using the remotes package:
remotes::install_github("corybrunson/sc")
A popular illustration from Wikimedia Commons provides an illustration:
library(sc) # 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.