pixiplex is an experimental R package aimed at enabling interactive and efficient visualization of simplicial complexes and graphs. The package exports a smaller wrapper around a subset of the pixi.js libraries, which is connected to R via the htmlwidgets framework.
The visualizations are rendered interactively in the sense that a variety of common viewport interactions are supported out-of-the-box, e.g. panning, zooming (including pinch-to-zoom), dragging (+deceleration), snapping, clamping, force-driven simulations using d3-force, support for reactive observers with shiny as well as variety of customizable message handlers, etc.
This package is in a very early stage of development.
library("pixiplex") g <- igraph::sample_grg(100, radius = 0.20) # igraph used just to generate a graph pp <- pixiplex(g) plot(pp)
Enable force simulation
plot(pp) %>% enableForce()
Change colors / other properties of nodes,
plot(pp) %>% setNodeStyle(node_ids = 1:50, color = rgb(1, 0, 0))
- Export polygon primitive to visualize higher order simplices
- Finish vignette describing features
- more documentation