Skip to content

ggraph

2.2.2

An Implementation of Grammar of Graphics for Graphs and Networks

129packages depend
911.9Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Thomas Lin PedersenFirst published 2017-02-2414 releasesCRAN page ↗GitHub ↗

The grammar of graphics as implemented in ggplot2 is a poor fit for graph and network visualizations due to its reliance on tabular data input. ggraph is an extension of the ggplot2 API tailored to graph visualizations and provides the same flexible approach to building up plots layer by layer.

Install

Health

CRAN checks
13OK
Slowest check: 9.3 min · r-oldrel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
19
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 581 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
92%
Return-value docs
34%
References docs
21%

Downloads

911.9K
CRAN downloads in the past year
Rank #401 · ~2.5K/day · ~76K/mo
Daily download trend is not available in this view yet.
69.2K30 days
233.5K90 days
911.9K1 year
Compare downloads with other packages →
Also on5.9K r2u39 autocran53.9K conda_forge177 c2d4u

Repository

Repository
1,116Stars
114Forks
50Open issues
7Open PRs
12Releases
408Commits
16Contributors
graph-visualizationggplot2visualizationnetwork-visualizationrggplot-extension
408 commits · Last activity 2025-08-25 · +0.3% stars, 30d

Stars over time

2025-07-19 · 1,0842026-07-07 · 1,116

Repository practices

Upstream repositoryBeta

7 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/thomasp85/ggraph on 2026-07-19.

Continuous integration (1)
GitHub Actions
CRAN release process (2)
cran-comments.mdrevdep/
Docs source (1)
README.Rmd
Lint, format, editor (2)
AirVS Code
Show all practices
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
27 external dependencies (excludes base and recommended)
Depends (2)
R >= 2.10ggplot2
LinkingTo (1)
Enhances (0)
none

Code & Tests

Code Composition
R 14,649 (50%)Rd 11,251 (39%)C++ 1,725 (6%)Vignettes 1,213 (4%)C 204 (1%)
Code characteristics
Object systems
S325
Cyclomatic complexity
1.0 median / 26 max

Test coverage

Line coverage

Expression

Tests / Examples

Functions

407 148 exported

Complexity

2 avg / 26 max

Call network

407 nodes / 487 edges

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Datasets

Bundled datasets · 1
NameClassRows × ColsAlso ships in
highschooldata.frame506 × 3

People & History

People (2)
Maintainer (1)
Maintainer, Author
Authors (1)
Maintainer, Author
Copyright holders (1)
Copyright holder · added in 2.0.0
Package Timeline

14 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 2.2.2Latest
    2025-08-24 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 2.2.1
    2024-03-07 · diff ↗
  • 2.2.0
    2024-02-27 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 2.1.0
    2022-10-09 · diff ↗
  • 2.0.6
    2022-08-08 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 2.0.5
    2021-02-23 · diff ↗
  • 2.0.4
    2020-11-16 · diff ↗
  • 2.0.3
    2020-05-20 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 2.0.2
    2020-03-17 · diff ↗
Show 9 earlier events
  • 2.0.1
    2020-02-07 · diff ↗
  • 2.0.0
    2019-09-02 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.0.2
    2018-07-07 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 1.0.1
    2018-01-29 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 1.0.0
    2017-02-24
  • R
    R 3.3.0 released · 2016-05-03

Package metadata

First published
2017-02-24
Total releases
14 / 9 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 2.10
Bundled data
10.0 KB / 3 files
Download size
3.4 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views
Report a problem with this page →