R Observatory
Search
install.packages("ggraph")
CRAN 30-day downloads, method
62,758−13.3% down on the 30 days before, the worse direction

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.

Maintainer
Thomas Lin Pedersen
Latest release
24 Aug 2025
First release
24 Feb 2017

Compare with another package

More details
Releases
14
Needs compilation
Yes
Needs R
>= 2.10
LazyData
TRUE
RoxygenNote
7.3.2
Task views (1)
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("ggraph")
APA
Pedersen, T. L., & RStudio. (2025). ggraph: An Implementation of Grammar of Graphics for Graphs and Networks (Version 2.2.2) [Computer software]. https://doi.org/10.32614/CRAN.package.ggraph
About

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA
Balamuta, J. J. (2026). R Observatory: Metrics for ggraph version 2.2.2 [Data set]. HJJB, LLC. Data release v2026-10-29. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-29, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    2.2.2
    Time taken
    299 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    2.2.2
    Time taken
    212 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    2.2.2
    Time taken
    201 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    2.2.2
    Time taken
    206 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    2.2.2
    Time taken
    771 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    2.2.2
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    2.2.2
    Time taken
    316 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    2.2.2
    Time taken
    762 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    2.2.2
    Time taken
    294 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    2.2.2
    Time taken
    289 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    2.2.2
    Time taken
    69 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    2.2.2
    Time taken
    326 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    2.2.2
    Time taken
    707 s
  • 13 OK
Extra checks (1)

Over time

No change since 5 Aug 2026

As a list (6)
ChangedWorst statusOKNotesWarningsErrors
5 Aug 2026OK13000
1 Aug 2026Note12100
9 Jun 2026OK13000
8 Jun 2026Error12001
25 Apr 2026OK12000
10 Mar 2026Note11300

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
93,126+1.5% up on the 30 days before, the better directionIt is the sum of 5 channels: CRAN, r2u, autoCRAN, conda-forge and c2d4u.

CRAN rank

435 of 26,553

CRAN

62,758 downloads in the last 30 days

Rank
435 of 26,553
Change
−13.3% down on the 30 days before, the worse direction

It is in the total. Take it out

r2u

3,742 downloads in the last 30 days

Rank
475 of 30,526
Change
+246% up on the 30 days before, the better direction

It is in the total. Take it out

autoCRAN

7 downloads in the last 30 days

Rank
7,266 of 29,233
Change
−58.8% down on the 30 days before, the worse direction

It is in the total. Take it out

conda-forge

26,506 downloads in the last 30 days

Rank
279 of 3,828
Change
+46.5% up on the 30 days before, the better direction

It is in the total. Take it out

c2d4u, no longer updated

113 downloads in the last 30 days

Rank
315 of 7,575
Change
−25.2% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

All channels
5K2.5K
not complete yet

Compare downloads

Needs
20
Dependent packages
78
Suggested by
69
Needs (20)
Installing it adds
46 packages, 44.8 MB of source
Of those, need compilation
29
Optional extras (11)
Dependent packages (50 of 78)
PackageTitleDownloads in 30 days
arulesVizVisualizing Association Rules and Frequent Itemsets9,270
ggdagAnalyze and Create Elegant Directed Acyclic Graphs8,499
clustreeVisualise Clusterings at Different Resolutions4,191
scholarAnalyse Citation Data from Google Scholar2,498
CausalQueriesMake, Update, and Query Binary Causal Models1,574
ggpicrust2Make 'PICRUSt2' Output Analysis and Visualization Easier1,380
wpaTools for Analysing and Visualising Viva Insights Data1,245
genekitrGene Analysis Toolkit1,082
TransProRAnalysis and Visualization of Multi-Omics Data1,080
multinmaBayesian Network Meta-Analysis of Individual and Aggregate Data1,019
akcAutomatic Knowledge Classification970
pathfindREnrichment Analysis Utilizing Active Subnetworks914
autographAutomatic Plotting and Theming of Many Graphs775
dyngenA Multi-Modal Simulator for Spearheading Single-Cell Omics Analyses616
phylopathPerform Phylogenetic Path Analysis597
tallText Analysis for All552
dsemDynamic Structural Equation Models551
numbatHaplotype-Aware CNV Analysis from scRNA-Seq517
specrConducting and Visualizing Specification Curve Analyses498
MultiTraitsAnalyzing and Visualizing Multidimensional Plant Traits475
genBaRcodeAnalysis and Visualization Tools for Genetic Barcode Data472
ResINConduct Response Item Network (ResIN) Analysis with Social Response Data448
MuTATEMulti-Target Automated Tree Engine (MuTATE)441
pkggraphExplore the R Package Dependencies on the Comprehensive R Archive Network (CRAN) Like Repositories433
muleaEnrichment Analysis Using Multiple Ontologies and False Discovery Rate431
vennDiagramLabHeadless Venn Diagram Analysis and Rendering430
vivainsightsAnalyze and Visualize Data from 'Microsoft Viva Insights'423
FCtoolsFunctional Connectivity Tools415
apisensrInterface to 'episensr' for Sensitivity Analysis of Epidemiological Results411
inferCSNInferring Cell-Specific Gene Regulatory Network407
birddogSniffing Emergence and Trajectories in Academic Papers and Patents395
snahelper'RStudio' Addin for Network Analysis and Visualization389
ggExametrikaVisualization of 'exametrika' Output Using 'ggplot2'383
basketBasket Trial Analysis382
SouthParkRshinyData and 'Shiny' Application for the Tv Show 'SouthPark'372
netcomNETwork COMparison Inference367
stminsightsA 'Shiny' Application for Inspecting Structural Topic Models366
phylepicCombined Visualisation of Phylogenetic and Epidemiological Data364
xplaineffDecomposing Global Feature Effects Based on Feature Interactions343
goatGene Set Analysis Using the Gene Set Ordinal Association Test340
HospitalNetworkBuilding Networks of Hospitals Through Patients Transfers337
finnsurveytextAnalyse Open-Ended Survey Responses in Finnish336
scPairsIdentifying Synergistic Gene Pairs in Single-Cell and Spatial Transcriptomics326
SNPannotatorAutomated Functional Annotation of Genetic Variants and Linked Proxies325
netropyStatistical Entropy Analysis of Network Data325
DedooseRMonitoring and Analyzing Dedoose Qualitative Data Exports323
chemodivAnalysing Chemodiversity of Phytochemical Data320
bacontreesBayesian Context Trees for Discrete Sequence Data317
whomdsCalculate Results from WHO Model Disability Survey Data315
bartManCreate Visualisations for BART Models311
Functions
407
Public exports
242
Lines of R code
14,649
Median complexity
1
Functions (407)
FunctionKindFileLinesComplexity
autographPublicR/autograph.R31
circlePublicR/geometry.R31
collect_connectionsPublicR/connections.R31
collect_edgesPublicR/edges.R31
create_layoutPublicR/layout.R102
edge_anglePublicR/utils.R51
ellipsisPublicR/geometry.R91
facet_edgesPublicR/facet_edges.R393
facet_graphPublicR/facet_graph.R451
facet_nodesPublicR/facet_nodes.R393
geom_axis_hivePublicR/geom_axis_hive.R301
geom_conn_bundlePublicR/geom_conn_bundle.R341
Size and composition

Lines by kind (29,042)

KindLinesShare
R code14,64950%
Documentation11,25139%
Guides1,2134%
Compiled code1,9297%

Lines by language

LanguageLinesShare
R14,64950%
Rd11,25139%
C++1,7256%
Vignettes1,2134%
C2040.7%

Languages are counted from file extensions.

Files
224
R functions
282
Compiled functions
138
Object systems
S3: 25 methods
Deprecated functions
11
Complexity
Median
1
Mean
2.03
Highest
26
Median lines per function
19
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
282
Calls
342
Unconnected
104
Groups
12
Growth (14 releases)
Total lines by release
14,539 on 24 Feb 201729,042 on 24 Aug 2025
Release changes

Both releases side by side

2.2.1 to 2.2.2, 7 Mar 2024 to 24 Aug 2025

Files changed
126
Lines added
7,041
Lines deleted
2,603
Exports
No change
Changed measures (9)
MeasureSubjectBeforeAfter
Total linesStructure24,61129,042
Lines of R codeStructure11,13514,649
Compiled shareLanguages8%7%
Lines of documentationDocumentation10,33411,251
Arguments documentedDocumentation92%92%
Mean complexityComplexity2.042.03
Lines per function (mean)Complexity15.5125.24
Call edgesCall graph344342
Mean connectionsCall graph2.442.43
Most changed files (12 of 126)
FileLines addedLines deleted
R/geom_edge.R412130
R/geom_edge_bundle_force.R30899
R/geom_edge_bundle_path.R27893
R/geom_edge_elbow.R26698
R/geom_edge_bundle_minimal.R24282
R/theme_graph.R201121
R/scale_edge_colour.R24764
R/scale_edge_fill.R24764
MD5125125
R/geom_edge_arc.R17562
inst/doc/Edges.html117118
R/geom_edge_fan.R17262

The package was built and has no tests to run.

Lines of tests
0
Exports named in tests
0%
Test suite
Has tests
No
Test frameworks
No tests in this release
Test lines per line of code
0
Exports documented
100%
Arguments documented
91.6%
Return value documented
33.9%
Help pages with examples
44%
Examples run in checks
100%
Guides (4)
Other documentation
README
Yes, 581 words
Release notes file
Yes
Help pages
84
Lines of documentation
11,251
DatasetSizeColumns
flareThe class hierarchy of the flare visualization librarylength 3
highschoolFriendship among high school boys506 × 3from, to, year
whigsMembership network of American Whigs254 × 7

thomasp85 / ggraph on github.com

Stars
1,121+0.18% up on 30 days ago, the better direction
Forks
114
Open issues
51
Last commit
25 Aug 2025
Activity
Commits
408
Open pull requests
8
Tagged releases
12
Latest tagged release
v2.2.2, 25 Aug 2025
In development
Default branch at 2.2.2.9000, ahead of CRAN 2.2.2 (checked 2026-10-25)
Issues closed in
1,094 days (median)
Pull requests closed in
17 days (median)
Pull requests merged
66%
Created
13 Jan 2016
Licence file reads as
–
Development practices (12)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Governance and communityCode of conduct
Docs sourceREADME.Rmd, pkgdown
GitHub Pages site last deployed 2025-08-25
The repository has a site deploy workflow
pkgdown site last built 2025-08-25
CoverageCoverage reporting (Codecov)
CRAN release processcran-comments.md, revdep/
Lint, format, editorAir, VS Code

Method, repository practices

Across thomasp85

R releases
  • On CRAN
  • Release
VersionReleasedR
2.2.2 current24 Aug 20254.5.1
2.2.17 Mar 20244.3.3
2.2.027 Feb 20244.3.2
2.1.09 Oct 20224.2.1
2.0.68 Aug 20224.2.1
2.0.523 Feb 20214.0.4
2.0.416 Nov 20204.0.3
2.0.320 May 20204.0.0
Earlier versions (6)
VersionReleasedREvents
2.0.217 Mar 20203.6.3
2.0.17 Feb 20203.6.2
2.0.02 Sep 20193.6.1Licence: MIT + file LICENSE
1.0.27 Jul 20183.5.1
1.0.129 Jan 20183.4.3
1.0.024 Feb 20173.3.2

Relicensed from GPL-3 in version 2.0.0.

Release notes (2.2.2)
  • Fixed a bug in the collapse functionality of get_edges() (#362)
  • General upkeep and compatibility with ggplot2 v4.0.0