ggnetwork

Geoms to plot networks with ggplot2

https://github.com/briatte/ggnetwork

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
    2 of 11 committers (18.2%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (18.7%) to scientific vocabulary

Keywords

ggplot2 network-visualization r
Last synced: 6 months ago · JSON representation

Repository

Geoms to plot networks with ggplot2

Basic Info
Statistics
  • Stars: 151
  • Watchers: 8
  • Forks: 29
  • Open Issues: 24
  • Releases: 5
Topics
ggplot2 network-visualization r
Created over 10 years ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog Contributing Code of conduct Support

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# ggnetwork


[![Lifecycle: maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
[![GitHub tag](https://img.shields.io/github/tag/briatte/ggnetwork.svg?label=latest)](https://github.com/briatte/ggnetwork/releases)
[![R-CMD-check](https://github.com/briatte/ggnetwork/workflows/R-CMD-check/badge.svg)](https://github.com/briatte/ggnetwork/actions?workflow=R-CMD-check)
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/briatte/ggnetwork?branch=master&svg=true)](https://ci.appveyor.com/project/briatte/ggnetwork)
[![Coverage Status (codecov)](https://codecov.io/gh/briatte/ggnetwork/branch/master/graph/badge.svg)](https://codecov.io/gh/briatte/ggnetwork)
[![CRAN status](https://www.r-pkg.org/badges/version-ago/ggnetwork)](https://cran.r-project.org/package=ggnetwork)
[![CRAN checks (worst)](https://badges.cranchecks.info/worst/ggnetwork.svg)](https://cran.r-project.org/web/checks/check_results_ggnetwork.html)
[![CRAN total downloads](https://cranlogs.r-pkg.org/badges/grand-total/ggnetwork)](https://cran.r-project.org/package=ggnetwork)


This package allows to pass network objects to [`ggplot2`](https://ggplot2.org/) and provides geometries to plot their elements.

## Get started

You can install the released version of `ggnetwork` [from CRAN](https://cran.r-project.org/package=ggnetwork) with:

``` r
install.packages("ggnetwork")
```

And the development version [from GitHub](https://github.com/briatte/ggnetwork) with:

``` r
# install.packages("remotes")
remotes::install_github("briatte/ggnetwork")
```

The `ggnetwork` package depends on __R 3.5+__ and on `ggplot2` version 2.0.0+.

## Documentation

- The [package vignette](https://briatte.github.io/ggnetwork/) contains detailed examples of how to use its `fortify` method and each of its geometries.
- The [package website](https://briatte.github.io/ggnetwork/articles/ggnetwork.html) has more information and a list of [all package functions](https://briatte.github.io/ggnetwork/reference/index.html).

For further examples that use `ggnetwork` with other packages to produce animated graphs, see James Curley's slides on “[Interactive and Dynamic Network Visualization in R](http://curleylab.psych.columbia.edu/netviz/)” (2016). For even more options, see Katherine Ognyanova's tutorial “[Network visualization with R](https://kateto.net/network-visualization) (2019), and David Schoch's guide “[Network Visualizations in R using `ggraph` and `graphlayouts`](http://mr.schochastics.net/netVizR.html)” (2019).

## Getting help

If you encounter a clear bug, please file a minimal reproducible example [on GitHub](https://github.com/briatte/ggnetwork/issues).

For questions and other discussion, please contact the package maintainer, or ask other users [on Stack Overflow](https://stackoverflow.com/search?tab=newest&q=ggnetwork).

## Citation

You can get a citation for the package from R:

``` r
citation("ggnetwork")
```

## See also

The `ggnetwork` package was written within a larger development effort around network visualization with `ggplot2`, on which you can read the following article:

> Sam Tyner, François Briatte and Heike Hofmann, “[Network Visualization with `ggplot2`](https://doi.org/10.32614/RJ-2017-023),” _The R Journal_ 9(1): 27–59, 2017.

The article also covers the related packages [`geomnet`](https://github.com/sctyner/geomnet) and  [`ggnet`](https://github.com/briatte/ggnet). It does not cover the more recent [`ggraph`](https://github.com/thomasp85/ggraph), [`graphlayouts`](https://github.com/schochastics/graphlayouts) and [`tidygraph`](https://github.com/thomasp85/tidygraph), although you should turn to those if you need a highly extensive way to build and plot 'tidy' networks with `ggplot2`.

## Thanks

```{r, include = FALSE, eval = FALSE}
usethis::use_tidy_thanks()
```

Thanks to 
[@achmurzy](https://github.com/achmurzy), [@andrewd789](https://github.com/andrewd789), [@ArtemSokolov](https://github.com/ArtemSokolov), [@aterhorst](https://github.com/aterhorst), [@Edouard-Legoupil](https://github.com/Edouard-Legoupil), [@emillykkejensen](https://github.com/emillykkejensen), [@EvanUp](https://github.com/EvanUp), [@evinhas](https://github.com/evinhas), [@ferroao](https://github.com/ferroao), [@FinScience](https://github.com/FinScience), [@ghost](https://github.com/ghost), [@instantkaffee](https://github.com/instantkaffee), [@jalapic](https://github.com/jalapic), [@jcfisher](https://github.com/jcfisher), [@jfaganUK](https://github.com/jfaganUK), [@kippjohnson](https://github.com/kippjohnson), [@koheiw](https://github.com/koheiw), [@komalsrathi](https://github.com/komalsrathi), [@mbojan](https://github.com/mbojan), [@mcanouil](https://github.com/mcanouil), [@mgagliol](https://github.com/mgagliol), [@mhairi](https://github.com/mhairi), [@minimaxir](https://github.com/minimaxir), [@mkarikom](https://github.com/mkarikom), [@nick-youngblut](https://github.com/nick-youngblut), [@pinguinjay](https://github.com/pinguinjay), [@SantiFilippo](https://github.com/SantiFilippo), [@sciabolazza](https://github.com/sciabolazza), [@sctyner](https://github.com/sctyner), [@trinker](https://github.com/trinker), [@zachcp](https://github.com/zachcp) and two anonymous _[R Journal](https://journal.r-project.org/)_ reviewers.
[@heike](https://github.com/heike) and 
[@ethen8181](https://github.com/ethen8181) also helped with the tricky issue of having arrows on directed edges, while 
[@sumtxt](https://github.com/sumtxt) inspired this package as well as its predecessor, the `ggnet` package, which also benefitted from discussions with 
[@pedroj](https://github.com/pedroj) and Bertrand Sudre.

---
Please note that this project is released with a [Contributor Code of Conduct](.github/CODE_OF_CONDUCT.md).  
By participating in this project you agree to abide by its terms.

Owner

  • Name: François Briatte
  • Login: briatte
  • Kind: user
  • Location: Lille / Paris, France

Political scientist interested in network analysis. Speaks English, French, R, Stata.

GitHub Events

Total
  • Issues event: 3
  • Watch event: 3
  • Issue comment event: 6
  • Fork event: 2
Last Year
  • Issues event: 3
  • Watch event: 3
  • Issue comment event: 6
  • Fork event: 2

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 285
  • Total Committers: 11
  • Avg Commits per committer: 25.909
  • Development Distribution Score (DDS): 0.319
Past Year
  • Commits: 2
  • Committers: 2
  • Avg Commits per committer: 1.0
  • Development Distribution Score (DDS): 0.5
Top Committers
Name Email Commits
François Briatte b****e@g****m 194
Mickaël Canouil m****l@c****r 62
Jake Fisher j****f@a****u 17
Jacob Fisher f****e@g****m 4
Michal Bojanowski m****2@g****m 2
Tyler t****r@g****m 1
Kirill Müller k****l@c****m 1
runner r****r@M****l 1
runner r****r@M****l 1
runner r****r@M****l 1
Anka r****r@M****l 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 68
  • Total pull requests: 11
  • Average time to close issues: 9 months
  • Average time to close pull requests: 11 months
  • Total issue authors: 37
  • Total pull request authors: 8
  • Average comments per issue: 1.88
  • Average comments per pull request: 2.91
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 3
  • Pull requests: 0
  • Average time to close issues: 4 days
  • Average time to close pull requests: N/A
  • Issue authors: 3
  • Pull request authors: 0
  • Average comments per issue: 2.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • briatte (26)
  • mcanouil (4)
  • sctyner (2)
  • mbojan (2)
  • ghost (2)
  • instantkaffee (1)
  • SantiFilippo (1)
  • mkarikom (1)
  • evinhas (1)
  • trinker (1)
  • mgagliol (1)
  • jalapic (1)
  • aterhorst (1)
  • minimaxir (1)
  • Fred-White94 (1)
Pull Request Authors
  • mcanouil (3)
  • trinker (2)
  • jcfisher (1)
  • zachcp (1)
  • koheiw (1)
  • mbojan (1)
  • kippjohnson (1)
  • krlmlr (1)
Top Labels
Issue Labels
bug (26) enhancement (21) question (13) help wanted (6) wontfix (5) invalid (1)
Pull Request Labels

Packages

  • Total packages: 3
  • Total downloads:
    • cran 4,210 last-month
  • Total docker downloads: 42,720
  • Total dependent packages: 13
    (may contain duplicates)
  • Total dependent repositories: 32
    (may contain duplicates)
  • Total versions: 13
  • Total maintainers: 1
proxy.golang.org: github.com/briatte/ggnetwork
  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.5%
Average: 5.7%
Dependent repos count: 5.9%
Last synced: 6 months ago
cran.r-project.org: ggnetwork

Geometries to Plot Networks with 'ggplot2'

  • Versions: 6
  • Dependent Packages: 13
  • Dependent Repositories: 31
  • Downloads: 4,210 Last month
  • Docker Downloads: 42,720
Rankings
Forks count: 2.7%
Stargazers count: 2.9%
Dependent packages count: 4.4%
Dependent repos count: 4.8%
Downloads: 6.3%
Average: 7.4%
Docker downloads count: 23.5%
Maintainers (1)
Last synced: 6 months ago
conda-forge.org: r-ggnetwork
  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 1
Rankings
Dependent repos count: 24.3%
Stargazers count: 30.8%
Forks count: 31.9%
Average: 34.7%
Dependent packages count: 51.6%
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.5 depends
  • ggplot2 >= 2.0.0 depends
  • ggrepel >= 0.5 imports
  • igraph * imports
  • network * imports
  • sna * imports
  • utils * imports
  • knitr * suggests
  • rmarkdown * suggests
  • testthat * suggests