• Stars
    star
    144
  • Rank 255,590 (Top 6 %)
  • Language
    HTML
  • Created about 9 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Geoms to plot networks with ggplot2

ggnetwork

Lifecycle: maturing GitHub tag R-CMD-check AppVeyor Build Status Coverage Status (codecov) CRAN status CRAN checks (worst) CRAN total downloads

This package allows to pass network objects to ggplot2 and provides geometries to plot their elements.

Get started

You can install the released version of ggnetwork from CRAN with:

install.packages("ggnetwork")

And the development version from GitHub with:

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

The ggnetwork package depends on R 3.5+ and on ggplot2 version 2.0.0+.

Documentation

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” (2016). For even more options, see Katherine Ognyanova’s tutorial “Network visualization with R (2019), and David Schoch’s guide “Network Visualizations in R using ggraph and graphlayouts” (2019).

Getting help

If you encounter a clear bug, please file a minimal reproducible example on GitHub.

For questions and other discussion, please contact the package maintainer, or ask other users on Stack Overflow.

Citation

You can get a citation for the package from 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,” The R Journal 9(1): 27–59, 2017.

The article also covers the related packages geomnet and ggnet. It does not cover the more recent ggraph, graphlayouts and tidygraph, although you should turn to those if you need a highly extensive way to build and plot ‘tidy’ networks with ggplot2.

Thanks

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


Please note that this project is released with a Contributor Code of Conduct.
By participating in this project you agree to abide by its terms.

More Repositories

1

awesome-network-analysis

A curated list of awesome network analysis resources.
R
3,474
star
2

ggnet

Network visualization with ggplot2
R
194
star
3

ida

Introduction to Data Analysis, using R (2013)
R
175
star
4

srqm

An introductory statistics course for social scientists, using Stata
TeX
49
star
5

dsr

Introduction to Data Science with R (Sciences Po, Paris, 2023)
R
44
star
6

parlnet

Bill cosponsorship networks in European parliaments.
17
star
7

burd

A blue-red Stata colour scheme that supports up to 11 diverging classes.
16
star
8

ggcorr

Correlation matrixes with ggplot2:
R
15
star
9

tidykml

Turn KML Files into tidy data frames:
R
12
star
10

neta

Archived code. See the `parlement` repo for the updated version:
R
8
star
11

congress

Bill cosponsorship networks in the U.S. Congress.
R
8
star
12

parlviz

Interactive visualizations of legislative cosponsorship networks.
PHP
7
star
13

qogdata

Functions to manipulate Quality of Government data and related material. Related experiments: https://github.com/briatte/psData and https://github.com/rOpenGov/psData. For an up-to-date QOG R package, use https://github.com/rOpenGov/rqog.
R
6
star
14

theses.fr

R scripts to toy with the XML API of the theses.fr website.
R
6
star
15

elus

Bayesian ideal points of French politicians, based on Twitter data.
R
5
star
16

R-Meeting-Sponsors-France

All sponsors of national R conferences held in France.
R
5
star
17

computing

Computing advice for social science undergraduate students
Shell
5
star
18

kmaps

R code to map cancer mortality and incidence in Europe.
R
4
star
19

moralecon

R/Stata code to map out the moral economy of a few social policy issues in various countries.
R
4
star
20

epam

Amendment cosponsorship networks in the European Parliament.
R
3
star
21

ggtable

Simple frequencies and tabulations as bar plots.
R
3
star
22

swd

Two-day workshop on scraping legislative data, organised by URFIST Bordeaux in 2018.
R
3
star
23

euspeech

What MEPs said or wrote during plenary sessions, 1999–2014.
R
3
star
24

orszaggyules

Bill cosponsorship networks in the Hungarian Parliament.
R
3
star
25

congres-afsp

AFSP conference panel co-attendance networks.
R
2
star
26

parlamento

Bill cosponsorship networks in the Italian Parliament.
R
2
star
27

stortinget

Bill cosponsorship networks in the Norwegian Parliament.
R
2
star
28

assembleia

Legislative cosponsorship networks in the Portuguese parliament.
R
2
star
29

sociothese

Topic models for @coulmont.
R
2
star
30

gukhoe

Bill cosponsorship networks in the South Korean Parliament.
R
2
star
31

eduskunta

Bill cosponsorship networks in the Finnish Parliament.
R
2
star
32

parlement

Bill cosponsorship networks in the French Parliament.
R
2
star
33

edm

Early day motion cosponsorships in the U.K. House of Commons.
R
2
star
34

belparl

Bill cosponsorship networks in the Belgian Parliament.
R
2
star
35

epsaconf

Data from EPSA conferences, 2019-2023
R
2
star
36

charlie-covers

Co-occurrence networks from Charlie Hebdo covers, 2008-2015.
R
1
star
37

integritate

A scraper for Romanian transparency files.
R
1
star
38

riksdag

Bill cosponsorship networks in the Swedish Parliament.
R
1
star
39

parlamentul

Bill cosponsorship networks in the Romanian Parliament.
R
1
star
40

folketinget

Bill cosponsorship networks in the Danish Parliament.
R
1
star
41

oireachtas

Bill cosponsorship networks in the Irish Parliament
R
1
star
42

revues

parse Cairn.info journal metadata
HTML
1
star
43

marsad

Amendment cosponsorship networks and vote-based ideal points in the Tunisian Parliament.
R
1
star
44

ala

What got published in A List Apart, 1999-2016 – pings to @alistapart and @zeldman
R
1
star
45

aad

Data analysis examples, written in R.
R
1
star
46

swparl

Bill cosponsorship networks in the Swiss Parliament
R
1
star
47

nationalrat

Bill cosponsorship networks in the Austrian Parliament.
R
1
star
48

ecprconf

Data and networks from ECPR conferences
R
1
star