/pixiplex

R package for visualizing and interacting with simplicial complexes

Primary LanguageROtherNOASSERTION

pixiplex

package status

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.

The visualizations are rendered efficiently in the sense that simplex rendering is done using WebGL primitives with help of pixi.js, from which the package derives its name from.

This package is in a very early stage of development.

Quickstart

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))

TODO

  • Export polygon primitive to visualize higher order simplices
  • Finish vignette describing features
  • more documentation