3D graphs in R powered by plotly
and igraph
.
Hacks with plotly
to trick it into producing a rotatable, pannable and zoomable 3D render of an igraph
graph
that will look something like this.
OpenGL seems to render badly in Linux, and even worse inside VMs.
Due to forces beyond control, plotligraph
will generate one brewer.pal
warning per edge. Don't worry about it.
# devtools::install_github("DexGroves/plotligraph")
library("plotly")
library("igraph")
library("plotligraph")
set.seed(1234)
graph <- barabasi.game(35)
V(graph)$name <- sample(letters, length(E(graph)), TRUE)
plotligraph(graph)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.