ggpubr: 'ggplot2' Based Publication Ready Plots

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.

Version: 1.0.0
Depends: R (≥ 4.1.0), ggplot2 (≥ 3.5.2)
Imports: ggrepel (≥ 0.9.2), grid, ggsci, stats, utils, tidyr (≥ 1.3.2), purrr, dplyr (≥ 1.2.0), cowplot (≥ 1.2.0), ggsignif, scales, gridExtra, glue, polynom, rlang (≥ 1.1.7), rstatix (≥ 1.0.0), tibble, magrittr
Suggests: grDevices, knitr, RColorBrewer, gtable, testthat
Published: 2026-07-06
DOI: 10.32614/CRAN.package.ggpubr
Author: Alboukadel Kassambara [aut, cre], Laszlo Erdey [ctb] (Faculty of Economics and Business, University of Debrecen, Hungary)
Maintainer: Alboukadel Kassambara <alboukadel.kassambara at gmail.com>
BugReports: https://github.com/kassambara/ggpubr/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://rpkgs.datanovia.com/ggpubr/, https://github.com/kassambara/ggpubr
NeedsCompilation: no
Citation: ggpubr citation info
Materials: README, NEWS
CRAN checks: ggpubr results

Documentation:

Reference manual: ggpubr.html , ggpubr.pdf

Downloads:

Package source: ggpubr_1.0.0.tar.gz
Windows binaries: r-devel: ggpubr_1.0.0.zip, r-release: ggpubr_1.0.0.zip, r-oldrel: ggpubr_1.0.0.zip
macOS binaries: r-release (arm64): ggpubr_1.0.0.tgz, r-oldrel (arm64): ggpubr_1.0.0.tgz, r-release (x86_64): ggpubr_1.0.0.tgz, r-oldrel (x86_64): ggpubr_1.0.0.tgz
Old sources: ggpubr archive

Reverse dependencies:

Reverse depends: broadSeq, clustEff, LoTTA, SCOUTer, SKFCPD, survminer
Reverse imports: ADAMgui, adestr, AdverseEvents, agriutilities, AnanseSeurat, AnnoProbe, AntsNet, APCI, APCtools, asmbPLS, AssumpSure, autoslider.core, baker, bartXViz, BatchQC, BAwiR, BayesChange, BayesianPlatformDesignTimeTrend, BayesMultiMode, bayMDS, baytaAAR, BCFM, bdl, bdsm, BinMat, BioM2, BiostatsUHNplus, BioThermR, bmstdr, BNPmix, BoneDensityMapping, BRCore, BREADR, bSi, BSTFA, calibmsm, CeTF, ClassifyR, CLRtools, ClusROC, coda4microbiome, CompAREdesign, compSPOT, conformalInference.fd, convergEU, corx, CovidMutations, Coxmos, crctStepdown, CRMetrics, crosslag, csa, csmpv, cvCovEst, dae, DamageDetective, ddtlcm, DeductiveR, DeepTarget, DFD, dfoliatR, diversityForest, dominoSignal, DOtools, dPCP, dpGMM, drugsens, DspikeIn, dtComb, easier, easynem, ecocbo, edar, EEAaq, EGAnet, ELMER, ENMTools, entropart, epidecodeR, epigraHMM, epts, esmtools, EvalTest, exeval, explainer, factoextra, fastai, fChange, finnsurveytext, FlowSOM, FluxSeparator, FRK, FuseSOM, GABB, GCEstim, GenomicPlot, GenomicSuperSignature, geocausal, gfoRmula, ggInterval, ggquickeda, GimmeMyPlot, giniCI, gkwreg, glmmSeq, GNAR, GrafGen, grapesAgri1, HanStat, hdcuremodels, hdpGLM, heiscore, HHBayes, HiCaptuRe, hipathia, hipecR, HYPEtools, iCellR, IDEATools, iglu, ImFoR, INetTool, iNEXT.4steps, insane, InTAD, integrity, iPath, IRon, iSTAY, jollofR, jskm, jsmodule, JWileymisc, knfi, kollaR, LeadSense, lehuynh, Lheuristic, LinkHD, lmap, longreadvqs, LorMe, LTCDM, MAPCtools, mappoly, markeR, mastR, mc2d, mda.biber, meconetcomp, mecoturn, MERO, MetaDICT, MetaProViz, metaviz, MethReg, methylclock, MF.beta4, miceRanger, microbial, MICSQTL, MIRit, missingHE, mlspatial, MSigSeg, mspms, MSPRT, MSstatsLiP, multid, multilevelTools, multipleOutcomes, musicatk, neonPlantEcology, NetSurvProx, nlmixr2rpt, OenoKPM, ofpetrial, OmicFlow, omicsTools, onemap, orthogene, orthos, OSLdecomposition, parafac4microbiome, pbcc, pctax, PDXpower, PhosR, plotGrouper, PLSDAbatch, PopComm, popstudy, PRECAST, pRecipe, predRupdate, promotionImpact, protGear, psc, pseudoCure, ptairMS, PUMP, qPCRhelper, Qploidy, QuadratiK, QurvE, rACMEMEEV, RCTrep, reappraised, RegrCoeffsExplorer, RelativeDistClust, reportRmd, reservoirnet, RFLOMICS, rfVarImpOOB, riskCommunicator, RiskMap, rKOMICS, rmlnomogram, rmsBMA, RNAmf, RnaSeqSampleSize, RNAshapeQC, rnmamod, rPACI, rrtable, rSAFE, scECODA, scITD, scSpatialSIM, SEIRfansy, sgdGMF, shadowVIMP, SHAPforxgboost, ShellChron, shinyDSP, sievePH, sigminer, signeR, Silhouette, simET, smplot2, SouthParkRshiny, SpaceTrooper, spDBL, SpliceImpactR, SPONGE, SqueakR, surtvep, SWTools, symptomcheckR, sysAgNPs, TADCompare, TargetDecoy, tcgaViz, TCIU, TestGardener, tidyexposomics, tidyplots, tipsae, TransProR, trawl, trendtestR, tRigon, TSAR, UCSCXenaShiny, ultrapolaRplot, UNCOVER, UniprotR, vaccine, VALERIE, vannstats, vDiveR, vecmatch, vici, viewpoly, VISTA, vmeasur, volcano3D, WINS, Xplortext
Reverse suggests: afex, aggreCAT, airship, ammiBayes, biomod2, blockr.ggplot, canvasXpress, catregs, causalBatch, CelliD, cfDNAPro, ciftiTools, circRNAprofiler, clustNet, cmpsR, CMTFtoolbox, CohortCharacteristics, cophescan, cpr, CrcBiomeScreen, demuxSNP, Dino, discourseGT, dsem, ecorisk, EpiInvert, EpiNova, escheR, evapoRe, expertsurv, FEAST, fgdiR, flexFitR, formods, geneplast, geocmeans, GeRnika, GUniFrac, heatwaveR, httk, httkexamples, idiogramFISH, immunarch, inferCSN, INLAspacetime, IOBR, jazzPanda, JointAI, lisat, LMMstar, lpirfs, manureshed, MerfishData, meta, MetaNet, miaViz, microeco, midasHLA, mlr, mmb, modsem, ModStatR, MOFA2, mstATA, multipleITScontrol, mxfda, NeEDS4BigData, NeuralEstimators, nipalsMCIA, NMRphasing, NPLStoolbox, nuts, OlinkAnalyze, OlinkAnalyzeVignettes, pcutils, pedbp, PerformanceAnalytics, plotthis, pvars, r4ss, rBiasCorrection, rcausim, RecordTest, remiod, rempsyc, RSAtools, rstatix, rTwig, RUCova, scCustomize, scLANE, scPCA, scTypeEval, SIAMCAT, SLGP, smartid, spareg, spatialGE, SplineDV, SpotSweeper, SQIpro, standR, SurvMetrics, tabxplor, TAD, TEKRABber, TestREnlme, TextMiningGUI, tinyarray, tpSVG, treesliceR, wrGraph, wxgenR, xvm

Linking:

Please use the canonical form https://CRAN.R-project.org/package=ggpubr to link to this page.