A system for 'declaratively' creating graphics, based on "The Grammar of Graphics". You provide the data, tell 'ggplot2' how to map variables to aesthetics, what graphical primitives to use, and it takes care of the details.

Documentation

Manual: ggplot2.pdf
Vignettes:

Maintainer: Hadley Wickham <hadley at rstudio.com>

Author(s): Hadley Wickham*, Winston Chang*, RStudio*

Install package and any missing dependencies by running this line in your R console:

install.packages("ggplot2")

Depends R (>= 3.1)
Imports digest, grid, gtable(>=0.1.1), MASS, plyr(>=1.7.1), reshape2, scales(>=0.4.1), stats, tibble, lazyeval
Suggests covr, ggplot2movies, hexbin, Hmisc, lattice, mapproj, maps, maptools, mgcv, multcomp, nlme, testthat(>=0.11.0), quantreg, knitr, rpart, rmarkdown, svglite
Enhances sp
Linking to
Reverse
depends
ACSNMineR, alakazam, AmpliconDuo, aoristic, apsimr, bayesDP, BCellMA, bde, benchmark, biomod2, bootnet, braidReports, brms, caret, CINOEDV, cjoint, classifierplots, climwin, clustrd, coefplot, conformal, corkscrew, cowplot, crmPack, Crossover, CRTgeeDR, cystiSim, dae, dataMaid, Deducer, DengueRT, DepthProc, dfexplore, dggridR, diffeR, difNLR, dMod, DoTC, dotwhisker, dslice, DTRlearn, dtwclust, dtwSat, dynOmics, dynr, earlywarnings, ecr, eeptools, eiCompare, EnsCat, EpiCurve, ESGtoolkit, factoextra, fbroc, fishmove, flippant, forecastHybrid, forestmodel, fpp2, freqparcoord, GADMTools, gapfill, gapmap, gcerisk, GenCAT, genomeplot, geomnet, gettingtothebottom, ggalt, ggbeeswarm, ggCompNet, ggcorrplot, ggforce, ggfortify, ggghost, ggiraph, ggmap, ggmcmc, ggmosaic, ggnetwork, ggparallel, ggpmisc, ggpolypath, ggpubr, ggraph, ggraptR, ggrepel, ggROC, ggseas, ggsn, ggswissmaps, ggtern, gMOIP, gmwm, gofMC, GOplot, gpmap, granovaGG, gsDesign, GSE, gwdegree, Hmisc, HRM, hyperSpec, ICtest, idm, ifaTools, InSilicoVA, interplot, ITEMAN, JWileymisc, LambertW, learnstats, LexisPlotR, likeLTD, likert, listdtr, lmms, lsbclust, MCMC.OTU, MCMC.qpcr, mcprofile, MergeGUI, meteogRam, mhtboot, MissingDataGUI, MIXFIM, mixOmics, mlxR, mosaic, mrfDepth, multilevelPSA, mutSignatures, ncappc, NeatMap, nullabor, openVA, orgR, OriGen, OutbreakTools, overlapping, PairedData, pAnalysis, ParallelTree, PASenseWear, PASWR2, pauwels2014, PAWL, pcadapt, pcaPA, pcrcoal, PedCNV, pequod, perry, perspectev, PhaseType, phylosim, pid, pitchRx, PKgraph, PKreport, PlasmaMutationDetector, plotly, plotROC, pointRes, popgraph, PortfolioEffectHFT, PPtreeViz, precintcon, prevR, PRISMA, profileR, ProgGUIinR, PSAboot, quadrupen, QualInt, quickpsy, radiant.data, RAM, randomizeR, RatingScaleReduction, RcmdrPlugin.KMggplot2, riskRegression, RJafroc, rms, robCompositions, robmed, robustHD, rorutadis, rotations, RpeakChrom, RSA, RSDA, rstan, rtip, rwty, Rz, scatterpie, SciencesPo, season, SEERaBomb, selfea, sensiPhy, sglr, shazam, simmer.plot, simmr, SmarterPoland, SMFI5, soc.ca, sparkTable, SparseFactorAnalysis, sparsereg, spatialClust, sprm, statisticalModeling, SubgrpID, summariser, survminer, SWMPr, synthpop, TcGSA, tcR, tdr, TeachBayes, texmex, texmexseq, tigger, timeline, trackeR, TriMatch, TripleR, tspmeta, useful, varian, vdg, vrcp, VWPre, waffle, walkr, WRTDStidal, XGR, xkcd, zooaRch
Reverse
imports
ABHgenotypeR, acc, ACDm, adapr, AdaptGauss, adegenet, admixturegraph, advclust, AFM, aimPlot, AlignStat, alphahull, ANOM, antitrust, aop, aslib, asremlPlus, assignPOP, asVPC, autoimage, BACA, BacArena, BACCT, backShift, bamdit, bayesAB, BayesFM, bayesplot, BBEST, Bclim, bcrm, bdscale, bdvis, bea.R, BETS, bibliometrix, Biograph, bioinactivation, bioOED, BioPET, bioplots, BioStatR, blkbox, blockseg, blscrapeR, bmlm, bmmix, bossMaps, brainGraph, breakpoint, bridger2, broman, brt, bsam, BTSPAS, burnr, CALF, CampaR1, capm, caretEnsemble, catenary, Causata, cdom, cellWise, ChainLadder, ChannelAttributionApp, ChaosGame, choroplethr, choroplethrAdmin1, classify, classyfire, cleanEHR, clhs, clifro, climbeR, ClimClass, ClusterR, clustRcompaR, cmaesr, cobalt, cocoreg, cofeatureR, CollapsABEL, colormap, colorplaner, colourpicker, CommT, complmrob, confidence, Conigrave, cooccur, CopulaDTA, corrr, cosinor, CosmoPhotoz, countyweather, covafillr, covmat, cplm, cpr, cricketr, crosstalk, cutoffR, darch, darksky, DataExplorer, dcmr, ddpcr, DeLorean, dendextend, DescribeDisplay, detzrcr, DFIT, dfpk, diagis, DiallelAnalysisR, disco, diveRsity, DiversityOccupancy, docxtools, drLumi, dsm, DstarM, DTR, DVHmetrics, DynNom, dynsim, dynsurv, EasyHTMLReport, EcoGenetics, edarf, edeaR, edgar, edstan, eechidna, EEM, effectFusion, EffectLiteR, ega, egcm, emdi, emil, emojifont, EmpiricalCalibration, enpls, EnvStats, EpiDynamics, episensr, episheet, esmisc, evaluator, evolqg, Evomorph, evoper, explor, exploreR, exreport, extracat, eyetrackingR, ez, ezsim, FAOSTAT, fdq, Fgmutils, fheatmap, FinCal, FindIt, findviews, fitcoach, FLightR, fontHind, fontMPlus, forecast, frailtySurv, FREddyPro, FreqProf, FRK, fSRM, funModeling, futureheatwaves, fuzzyforest, G2Sd, gaiah, GCalignR, GDINA, geneSLOPE, GeomComb, GERGM, GerminaR, gfcanalysis, GGally, ggdendro, ggdmc, ggenealogy, ggExtra, ggguitar, gghalfnorm, ggimage, ggiraphExtra, gglogo, ggloop, ggRandomForests, ggsci, ggspectra, ggstance, ggThemeAssist, ggthemes, gitter, glycanr, gmum.r, gogamer, greport, gridsampler, growcurves, growfunctions, GSparO, gsynth, gtrendsR, gunsales, gWQS, harrietr, hBayesDM, hdm, hdnom, heatmaply, heemod, hierarchicalDS, hierarchicalSets, HighDimOut, HistDAWass, HLMdiag, HoRM, hrbrthemes, HTSSIP, hurricaneexposure, hybridModels, hyfo, IAPWS95, IAT, ibmdbR, IGM.MEA, iJRF, imageData, IMP, imputeTestbench, incidence, inctools, IncucyteDRC, iNEXT, iNextPD, Information, InformationValue, IntClust, IntegratedJM, IntegratedMRF, interflex, intsvy, ipft, IPtoCountry, iWISA, jmv, kdetrees, kobe, KraljicMatrix, LANDD, largeVis, LBSPR, ldatuning, learningCurve, linear.tools, llama, lmerTest, LocFDRPois, logisticPCA, LOGIT, lsl, lvplot, mafs, manhattanly, mapr, marmap, MAVIS, MaxentVariableSelection, Mcomp, mdpeer, mdsr, MEGENA, MendelianRandomization, merTools, metacoder, MetaComp, metagen, metaheur, MetaIntegrator, metaMix, metaplotr, metaviz, Methplot, mglR, microbenchmark, micromap, MiRAnorm, miscset, mistral, mixR, MixSIAR, mizer, mlmc, mlr, Mobilize, modeval, Momocs, morse, mousetrap, moveHMM, mplot, mpoly, mrMLM, MRMR, MSCMT, MSGARCH, mtconnectR, mudata, multdyn, multiDimBio, MultiMeta, multipanelfigure, mvdalab, myTAI, netgen, networkreporting, NetworkRiskMeasures, NeuralNetTools, neuropsychology, NFP, nhstplot, nima, nlstimedist, NMF, NORRRM, nparACT, NPflow, npregfast, oaPlots, oaxaca, obAnalytics, oddsratio, officer, onewaytests, onlineCPD, OpasnetUtils, OpenStreetMap, optiRum, orderedLasso, osmplotr, P2C2M, pa, pacotest, paleofire, partialAR, patPRO, patternplot, pcrsim, pdp, pems.utils, performanceEstimation, permubiome, PGRdup, Phxnlme, PhyInformR, phylopath, pinbasic, pipe.design, pirate, planar, Plasmidprofiler, platetools, plotluck, plotMElm, PlotPrjNetworks, plotrr, pltesim, pmc, pogit, PopED, PopGenReport, poppr, POUMM, powerbydesign, prcbench, prcr, precrec, predictionInterval, predictmeans, PredictTestbench, PredPsych, PReMiuM, preprosim, preproviz, preText, pRF, primerTree, prism, productplots, prophet, propr, proteomics, pscore, PTXQC, QCAtools, QCSimulator, qdap, qgraph, qicharts, quanteda, QuantumClone, quickReg, qwraps2, r2glmm, radiant.basics, radiant.model, radiant.multivariate, rags2ridges, rAltmetric, randomUniformForest, rangeMapper, raptr, rbison, RBMRB, rbokeh, rchess, RcmdrPlugin.FuzzyClust, rddtools, RDS, readability, reda, refund, refund.shiny, repijson, replicationInterval, reproducer, rfigshare, rfisheries, RFmarkerDetector, rfPermute, rgbif, RGraphics, RImagePalette, rinat, rKIN, RmarineHeatWaves, rmcfs, rnoaa, rnrfa, RobustEM, robustlmm, rolypoly, rplos, RPPanalyzer, rprev, rpsftm, rrepast, rrr, rSARP, rSPACE, RSSL, rstanarm, RStoolbox, RtutoR, rvertnet, rWBclimate, rwirelesscom, ryouready, saeRobust, saeSim, SCGLR, scmamp, sdcMicro, SemiParBIVProbit, SensMixed, SensusR, sentimentr, SeqFeatR, sgd, SHELF, ShinyItemAnalysis, shinystan, sicegar, sidier, simPH, SixSigma, sjPlot, slackr, smoof, snht, snpEnrichment, solarius, sorvi, SpaCCr, SpaDES, sparsediscrim, sparsevar, SpatialEpiApp, spcosa, specmine, spef, spikeSlabGAM, spongecake, sppmix, squid, ss3sim, starma, starmie, statar, statcheck, statebins, StatRank, stormwindmodel, strataG, StroupGLMM, structSSI, strvalidator, subspaceMOA, superheat, survMisc, SurvRank, survutils, sValues, svdvis, swfscMisc, sysid, tadaatoolbox, tcgsaseq, TELP, thief, tidyquant, tidyverse, tigerstats, timelineS, TippingPoint, toaster, TOSTER, TreatmentSelection, treeclim, treemap, trelliscope, tsiR, TSMining, TSS.RESTREND, tvm, tweet2r, ubeR, UpSetR, userfriendlyscience, valr, valuer, VDAP, vdmR, VetResearchLMM, viridis, vmsbase, voxel, VRPM, wakefield, waterfalls, Wats, wppExplorer, WVPlots, x.ent, xxIRT, yorkr, yuimaGUI, zebu, ztype
Reverse
suggests
abctools, abd, ameco, AmyloGram, archetypes, archivist, ARPobservation, ARTool, automap, BatchGetSymbols, bayesbio, bbmle, BCEA, bcp, benchmarkme, benchmarkmeData, benchr, bife, binom, biogas, biogram, BlandAltmanLeh, bodenmiller, bridgedist, broom, brotli, cate, cda, checkmate, choroplethrMaps, chron, clusterfly, clusternomics, codingMatrices, codyn, coloc, contoureR, countytimezones, crawl, csp, cvequality, cvxclustr, Cyclops, dams, data.table, deconvolveR, demi, DGCA, dielectric, dimRed, directlabels, disclapmix, dlstats, doBy, dpcR, dplyr, DrBats, earthtones, ecb, ecoengine, edfReader, eemR, EFDR, emuR, enrichwith, etl, etm, eurostat, evaluate, ExtDist, eyelinker, fermicatsR, fetchR, FField, fiftystater, fitbitScraper, fitdistrplus, fivethirtyeight, flowr, forcats, fractional, frailtyEM, freqweights, frontiles, FSelectorRcpp, funrar, fuzzyjoin, gapminder, gcookbook, GDAdata, gender, geoknife, GetHFData, GetTDData, ggROC, githubinstall, glmmTMB, googlesheets, grattan, Greg, gridDebug, gridExtra, groupdata2, growthcurver, GSODR, gutenbergr, h2o, hazus, hdr, heuristica, highcharter, HistData, historydata, HiveR, httk, HWxtest, icarus, icd9, ie2miscdata, imager, installr, JacobiEigen, jtools, kamila, kfigr, Kmisc, knitrBootstrap, KSD, Lahman, latex2exp, lda, LDheatmap, LEAP, lme4, logitnorm, longCatEDA, ltbayes, MAc, macleish, MAd, maddison, magick, margins, marked, matrixStats, medicalrisk, medicare, metricsgraphics, MGLM, microplot, mistat, mixpack, mkin, mlrMBO, mmpf, modelr, moonBook, mosaicData, MSG, MultiBD, munsell, musica, mvtboost, mwaved, natserv, neurobase, nimble, NlsyLinks, nLTT, NNTbiomarker, nzelect, oapackage, observer, OECD, optiSel, packcircles, padr, pagenum, palettetown, pals, pander, ParamHelpers, parsemsf, PBImisc, PDQutils, peptider, photobiologyInOut, photobiologyLamps, photobiologyLEDs, photobiologyPlants, physiology, PKNCA, playwith, plspm, pomp, popEpi, popReconstruct, predatory, preprocomb, profr, profvis, ProjectTemplate, PRROC, PSCBS, psd, pseval, pwr, pxweb, qualvar, queuecomputer, R2admb, R6, ragtop, raincpc, rangemodelR, rasterVis, rattle, raw, rbefdata, rclimateca, rclinicaltrials, RcmdrPlugin.MA, RCMIP5, rdefra, RDML, rdpla, Rdtq, rem, replyr, ReporteRs, reval, revdbayes, rex, RFinfer, rfordummies, rivr, rmetasim, RndTexExams, rnpn, robustbase, rollply, ropenaq, rpdo, rpf, rPref, rsvd, rsvg, rtematres, rtf, rtide, rtimes, sadists, SamplerCompare, sand, scanstatistics, scdhlm, SDaA, SDEFSR, sdmpredictors, sdmvspecies, seewave, sensitivity, shiny, shinyjqui, sigmoid, simcausal, SimDesign, simmer, simstudy, simTool, simulator, sitmo, sjstats, slim, Sofi, sotkanet, spbabel, speaq2, srvyr, StructFDR, SuperLearner, surveillance, tableone, tabplot, taRifx, TeachingDemos, testassay, Thermimage, tictactoe, tidyjson, tidytext, tigris, tikzDevice, timeit, TimeProjection, tmap, Tmisc, tourr, tourrGui, toxboot, trapezoid, treecm, treescape, treespace, tufterhandout, UBL, ukgasapi, unvotes, UsingR, usmap, vcdExtra, vcfR, vdiffr, vipor, viridisLite, visreg, VSE, vtreat, warbleR, wbstats, wesanderson, WHO, wikipediatrend, wordbankr, wrswoR, wrswoR.benchmark, xgboost, XLConnect, xtractomatic, zenplots, zoo, zoocat
Reverse
enhances
rsunlight, tis
Reverse
linking to

Package ggplot2
Materials
URL http://ggplot2.tidyverse.org https://github.com/tidyverse/ggplot2
Task Views Graphics , Phylogenetics
Version 2.2.1
Published 2016-12-30
License GPL-2 | file LICENSE
BugReports https://github.com/tidyverse/ggplot2/issues
SystemRequirements
NeedsCompilation no
Citation
CRAN checks ggplot2 check results
Package source ggplot2_2.2.1.tar.gz