Skip to content
📦 3D Force-Directed Graph in R
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
data-raw
data
docs
inst/aframe-force
man
pkgdown
.Rbuildignore
.gitignore
DESCRIPTION
LICENSE
LICENSE.md
NAMESPACE
NEWS.md
README.md
_pkgdown.yml
aforce.Rproj
aforce.png
index.Rmd

README.md

aforce

3D Virtual Force Directed Graph in R.

logo

Installation

# install.packages("devtools")
devtools::install_github("JohnCoene/aforce")

Example

library(aforce)

data("some_nodes")
data("some_links")

aForce$
  new(n_label = "label")$ # initialise
  nodes(some_nodes, id, val, color, label)$ # add nodes
  links(some_links, source, target)$ # add edges
  build( # build
    aframer::a_camera(
      `wasd-controls` = "fly: true; acceleration: 600",
      aframer::a_cursor(opacity = 0.5)
    ),
    aframer::a_sky(color="#4c4c4c")
  )$ 
  browse() # browse graph

output

You can’t perform that action at this time.