Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/johncoene/grapher

✍️ Large interactive graphs
https://github.com/johncoene/grapher

network ngraph r rstats

Last synced: 10 days ago
JSON representation

✍️ Large interactive graphs

Awesome Lists containing this project

README

        

[![](/man/figures/cran.png)](https://shiny.john-coene.com/cran/)

# grapher

Create 3D interactive graphs.

[![Travis build status](https://travis-ci.org/JohnCoene/grapher.svg?branch=master)](https://travis-ci.org/JohnCoene/grapher)
[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/JohnCoene/grapher?branch=master&svg=true)](https://ci.appveyor.com/project/JohnCoene/grapher)
[![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](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")
```