https://github.com/JohnCoene/grapher
✍️ Large interactive graphs
https://github.com/JohnCoene/grapher
network ngraph r rstats
Last synced: about 1 month ago
JSON representation
✍️ Large interactive graphs
- Host: GitHub
- URL: https://github.com/JohnCoene/grapher
- Owner: JohnCoene
- License: other
- Created: 2019-10-18T12:31:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T00:45:24.000Z (over 2 years ago)
- Last Synced: 2025-02-27T21:48:29.348Z (about 2 months ago)
- Topics: network, ngraph, r, rstats
- Language: JavaScript
- Homepage: https://grapher.network
- Size: 16.5 MB
- Stars: 95
- Watchers: 7
- Forks: 3
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Funding: FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-shiny-extensions - grapher - An R integration of ngraph to create 3D and 2D interactive graphs. (Visualization / Network and Graph Data)
- jimsghstars - JohnCoene/grapher - ✍️ Large interactive graphs (JavaScript)
README
[](https://shiny.john-coene.com/cran/)
# grapher
Create 3D interactive graphs.
[](https://travis-ci.org/JohnCoene/grapher)
[](https://ci.appveyor.com/project/JohnCoene/grapher)
[](https://graph.network)[Website](https://grapher.network) | [Install](https://grapher.network/docs/install) | [Get Started](https://grapher.network/docs/get-started) | [Blog](https://grapher.network/blog/)
## Usage
{grapher} works hand-in-hand with most graph objects.
```r
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`.
``` r
# install.packages(remotes)
remotes::install_github("JohnCoene/grapher")
```