Skip to content

JohnCoene/grapher

Repository files navigation

grapher

Create 3D interactive graphs.

Travis build status AppVeyor build status lifecycle

Website | Install | Get Started | Blog

Usage

{grapher} works hand-in-hand with most graph objects.

library(grapher)

g <- make_data(50) # mock data

# from a list
graph(g)

# from igraph
ig <- igraph::make_ring(10)
graph(ig)

# from tidygraph
tbl_graph <- tidygraph::create_ring(20)
graph(tbl_graph)

# from gexf
graph("http://gephi.org/datasets/LesMiserables.gexf")

# from dot file
fl <- system.file("example/dotfile.gv", package = "grapher")
graph(fl)

# from single data.frame
# assumes they are links
graph(g$links)

# from data.frames
# pass only links
graph() %>% 
  graph_links(g$links, source, target)

# pass nodes and links
graph() %>% 
  graph_nodes(g$nodes, id) %>% 
  graph_links(g$links, source, target)

Installation

Simply use the remote or devtools.

# install.packages(remotes)
remotes::install_github("JohnCoene/grapher")

About

✍️ Large interactive graphs

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published