Skip to content

JohnCoene/aforce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

📦 3D Force-Directed Graph in R

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published