ggpubr
1.0.0'ggplot2' Based Publication Ready Plots
Overview
The 'ggplot2' package is excellent and flexible for elegant data visualization in R. However the default generated plots require some formatting before we can send them for publication. Furthermore, to customize a 'ggplot', the syntax is opaque and this raises the level of difficulty for researchers with no advanced R programming skills. 'ggpubr' provides some easy-to-use functions for creating and customizing 'ggplot2'-based publication ready plots. This version includes modern R ecosystem compatibility updates and customizable p-value formatting presets (APA, AMA, NEJM, Lancet, GraphPad, and scientific notation) for publication workflows, plus robust sparse-subset handling in statistical annotation layers such as 'stat_compare_means()' and 'geom_pwc()', with informative per-group skip diagnostics for non-comparable subsets.
Install
Health
- NOTE r-devel-linux-x86_64-debian-clang
- NOTE r-devel-linux-x86_64-debian-gcc
- NOTE2026-07-1112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0712 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-06-0313 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-05-2511 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE
Show 1 earlier snapshots
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 94%
- Documented parameters
- 92%
- Return-value docs
- 27%
- References docs
- 1%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Repository practices
7 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/kassambara/ggpubr on 2026-07-19.
Show all practices
Dependencies
and 271 more packages.
Code & Tests
- Cyclomatic complexity
- 2.0 median / 46 max
- Test cases
- 466 / 0.37 per code line
Test coverage
Line coverage
64%
Expression
63.6%
Tests / Examples
64.5% / 72% ex
Functions
371 122 exported
Complexity
4.7 avg / 46 max
Call network
371 nodes / 585 edges
Call graph
Open call graph →Lowest coverage
371 functions| Function | Cyclo | Coverage |
|---|---|---|
| as_npcx exp | 1 | 0% |
| as_npcy exp | 1 | 0% |
| background_image exp | 1 | 0% |
| bgcolor exp | 1 | 0% |
| border exp | 1 | 0% |
| change_palette exp | 1 | 0% |
Datasets
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| diff_express | data.frame | 36,028 × 5 | – |
| gene_citation | data.frame | 66 × 2 | – |
| gene_expression | tbl_df/tbl/data.frame | 1,305 × 5 | – |
People & History
24 releases. Pick two to compare their code metrics. R releases are shown for context.
- 1.0.0Latest
- RR 4.6.0 released · 2026-04-24
- 0.6.32026-02-24 · diff ↗
- 0.6.22025-10-17 · diff ↗
- 0.6.12025-06-27 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.6.02023-02-10 · diff ↗
- 0.5.02022-11-16 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.4.02020-06-27 · diff ↗
- 0.3.02020-05-04 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.2.52020-02-13 · diff ↗
Show 19 earlier events
- 0.2.42019-11-14 · diff ↗
- 0.2.32019-09-04 · diff ↗
- 0.2.22019-08-07 · diff ↗
- 0.2.12019-06-23 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.22018-11-15 · diff ↗
- 0.1.92018-11-11 · diff ↗
- 0.1.82018-08-30 · diff ↗
- 0.1.72018-06-23 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 0.1.62017-11-14 · diff ↗
- 0.1.52017-08-22 · diff ↗
- 0.1.42017-06-28 · diff ↗
- 0.1.32017-06-06 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 0.1.22017-03-14 · diff ↗
- 0.1.12016-12-05 · diff ↗
- 0.1.02016-07-20
- RR 3.3.0 released · 2016-05-03
Package metadata
- First published
- 2016-07-20
- Total releases
- 24 / 10 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 779 KB / 3 files
- Download size
- 1.6 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet