ggpubr
'ggplot2' Based Publication Ready Plots
Description
The 'ggplot2' package is excellent and flexible for elegant data visualization in R. However the default generated plots requires 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.
Downloads
232.9K
Last 30 days
223rd
830.6K
Last 90 days
3M
Last year
Trend: -22.8% (30d vs prior 30d)
1.2K
Last 30 days
3.4K
Last 90 days
15.7K
Last year
Trend: +37.2% (30d vs prior 30d)
1
Last 7 days
19
Last 30 days
0
All-time
autoCRAN-only: this name is served only by autoCRAN, so the count is exact.
7K
Last 30 days
21.6K
Last 90 days
73.4K
Last year
Trend: -3.1% (30d vs prior 30d)
CRAN Check Status
Show all 13 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check History
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 7, 2026
examples
Running massageExamples to create ‘ggpubr-Ex.R’ failed Error in file(out, "wt") : cannot open the connection Calls: <Anonymous> -> Rd2ex -> file In addition: Warning message: In file(out, "wt") : cannot open file '/tmp/RtmpGY670j/file241b7040e26d49/ggviolin.R': No space left on device Execution halted NONE
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 3, 2026
ERROR 11 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE May 25, 2026
tests
Running ‘testthat.R’ [27s/44s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(ggpubr)
Loading required package: ggplot2
>
> test_check("ggpubr")
Saving _problems/test-compare_means-39.R
S
...[truncated]...
"Wilcoxon, p = 0.0043", "Wilcoxon, p = 0.0038")` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
Observed label = Wilcoxon, p = 0.0035
[ FAIL 2 | WARN 3 | SKIP 0 | PASS 243 ]
Error:
! Test failures.
Execution halted
tests
Running ‘testthat.R’ [64s/161s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(ggpubr)
Loading required package: ggplot2
>
> test_check("ggpubr")
Saving _problems/test-compare_means-39.R
...[truncated]...
"Wilcoxon, p = 0.0043", "Wilcoxon, p = 0.0038")` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
Observed label = Wilcoxon, p = 0.0035
[ FAIL 2 | WARN 3 | SKIP 0 | PASS 243 ]
Error:
! Test failures.
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
Code & tests
Open call graph →Line coverage
–
Expression
–
Tests / Examples
–
Functions
331 117 exported
Complexity
4.1 avg / 33 max
Call network
331 nodes / 523 edges
Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.
Lowest coverage
Per-function coverage is not measured for this package yet.
Code
Structure
Lines of code
27,083
Files
221
Compiled share
0%
Has compiled src
No
Language breakdown
API
Exported functions
122
Internal functions
209
Recent export changes
Testing & CI
Has tests
Yes
Test-to-code ratio
0.12
testthat edition
–
CI present
No
CI type
[]
PR gated
No
Docs
Return-value doc rate
22.1%
\dontrun example ratio
3.8%
Roxygen coverage
99.2%
Has pkgdown
No
NEWS present
Yes
Health & Security signals
Informational signals; not verdicts.
on.exit coverage
–
Unsafe pattern score
0
Dep constraint coverage
36.8%
Secret pattern count
0
Bundled 3rd-party code
2 items
Portability & License
Min R version
4.1.0
System requirements
–
C++ standard
–
License
GPL (>= 2)
License flags
SPDX valid, OSI approved
History
Versions
23
First release
2016-07-20
Latest release
2026-02-24
Avg cadence
84 days
Cold removal rate
–
Dep drift
14
LOC over versions
Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.