Beautiful Graph Drawing
Overview
A graph visualization engine that emphasizes on aesthetics at the same time providing default parameters that yield out-of-the-box-nice visualizations. The package is built on top of 'The Grid Graphics Package' and seamlessly work with 'igraph' and 'network' objects.
- Attribute formulas for
vertex.nsides,vertex.size, andedge.widthnow evaluate the right-hand side against the graph's attributes, so expressions such asedge.width = ~ log1p(weight)orvertex.size = ~ degree ^ 2work in addition to bare attribute names. Previously any non-trivial right-hand side failed with a crypticthe condition has length > 1error. Missing attributes now produce a clear, informative message. vertex.color = ~ attrnow draws a legend appropriate to the attribute type: a categorical key for discrete attributes (factor, logical, low-cardinality integer) and a continuous **color bar** for continuous ones.- Documentation overhaul:
nplot()now documents the formula interface for mapping vertex/edge aesthetics from graph attributes, the README highlights what sets netplot apart, a package-level help page was added, and the pkgdown reference is organized by feature.
Show all changes in 0.4-0Hide the rest of the changes in 0.4-0
- New vignette
"formulas"demonstrating how to color, shape, and size vertices (and scale edge widths) from graph attributes using formulas. nplot.network()now uses the"weight"edge attribute foredge.widthby default (likenplot.igraph()already did), so edge widths reflect edge weights instead of being drawn uniformly.edge.widthvalues are also explicitly re-applied to each edge grob after color post-processing to keep the drawn line widths robust. Closes #17.edge.width.range,vertex.size.range, andvertex.label.rangenow acceptNULLto suppress scaling and use the supplied values as-is.- Fixed
vertex.rot, which was truncated to an integer and so ignored fractional (radian) rotations; the named"square"shape orientation was corrected as well. edge.line.ltyis now validated to be length 1 or one value per plotted edge, and is subset correctly whensample.edgesdrops edges.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- NOTE12 OK, 1 NOTE2026-06-07
Show 1 earlier changeHide 1 earlier change
- OK14 OK2026-03-10
Documentation
- Help pages
- 13 (1 internal)includes a package overview page
- Examples that run
- 100%12 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 73%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 90%
- Median days to close, 50 most recently updated closed issues
- 276
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
12 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/usccana/netplot on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-09-11 · The repository has a site deploy workflow
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2026-06-30Pull request: opened by its own accountCommits: 1 by its own account · at least 1 crediting it in the message
- Claude Codefirst seen 2026-07-22Named in .Rbuildignore: .claude, CLAUDE.mdPull request it wrote: opened by a project memberCommits: at least 3 crediting it in the message
- Codexfirst seen 2026-08-15Commits: at least 1 crediting it in the message
- Claude Opus 4.82 commits · Jul 2026
- Claude Opus 51 commit · Aug 2026
Dependencies
Installing netplot adds 16 packages (11 with compiled code, 10 MB of source tarballs). Heaviest: igraph 4.8 MB, vctrs 1.0 MB, rlang 766 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.4-0Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.3-02024-06-30 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.2-0
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 0.1-12021-06-16
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2021-06-16
- Total releases
- 4 / 5 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.4.0
- Download size
- 4.9 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("netplot")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
The repository also keeps a CITATION.cff.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.