ggplot2: Create Elegant Data Visualisations Using the Grammar of Graphics

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.

Version: 2.2.1
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
Published: 2016-12-30
Author: Hadley Wickham [aut, cre], Winston Chang [aut], RStudio [cph]
Maintainer: Hadley Wickham <hadley at rstudio.com>
BugReports: https://github.com/tidyverse/ggplot2/issues
License: GPL-2 | file LICENSE
URL: http://ggplot2.tidyverse.org, https://github.com/tidyverse/ggplot2
NeedsCompilation: no
Citation: ggplot2 citation info
Materials: README NEWS
In views: Graphics, Phylogenetics
CRAN checks: ggplot2 results

Downloads:

Reference manual: ggplot2.pdf
Vignettes: Extending ggplot2
Aesthetic specifications
Package source: ggplot2_2.2.1.tar.gz
Windows binaries: r-devel: ggplot2_2.2.1.zip, r-release: ggplot2_2.2.1.zip, r-oldrel: ggplot2_2.2.1.zip
OS X El Capitan binaries: r-release: ggplot2_2.2.1.tgz
OS X Mavericks binaries: r-oldrel: ggplot2_2.2.1.tgz
Old sources: ggplot2 archive

Reverse dependencies:

Reverse depends: ACSNMineR, afmToolkit, alakazam, AmpliconDuo, aoristic, apsimr, BatchMap, bayesDP, BCellMA, bde, benchmark, biomod2, bootnet, braidReports, brms, btergm, caret, CINOEDV, cjoint, classifierplots, climwin, clustrd, coefplot, conformal, corkscrew, cosinor2, cowplot, cr17, crmPack, Crossover, CRTgeeDR, cystiSim, dae, dataMaid, Deducer, DendroSync, DengueRT, DepthProc, dfexplore, dggridR, diffeR, difNLR, DoTC, dotwhisker, dslice, DTRlearn, dtwSat, dynOmics, dynr, earlywarnings, eeptools, egg, eiCompare, EnsCat, EpiCurve, ESGtoolkit, EventStudy, factoextra, fbroc, fergm, fishmove, flippant, flowDiv, forestmodel, fpp2, freqparcoord, GADMTools, gapfill, gapmap, gcerisk, GenCAT, genlogis, genomeplot, geomnet, geotoolsR, gettingtothebottom, ggallin, ggalluvial, ggalt, ggbeeswarm, ggCompNet, ggcorrplot, ggedit, ggforce, ggformula, ggfortify, ggghost, ggimage, ggiraph, ggjoy, ggmap, ggmcmc, ggmosaic, ggnetwork, ggparallel, ggpmisc, ggpolypath, ggpubr, ggquiver, ggraph, ggraptR, ggrepel, ggridges, ggROC, ggseas, ggsn, ggspatial, ggswissmaps, ggtern, gMOIP, gofMC, GOplot, gpmap, granovaGG, gsDesign, GSE, gwdegree, Hmisc, HRM, hyperSpec, ICtest, idm, ifaTools, inlabru, INLAutils, InSilicoVA, interplot, itan, JWileymisc, LambertW, learnstats, LexisPlotR, likeLTD, likert, listdtr, lmms, logihist, longRPart2, lsbclust, MCMC.OTU, MCMC.qpcr, mcprofile, MergeGUI, metacart, metaforest, meteogRam, mhtboot, MissingDataGUI, MIXFIM, mixKernel, mixOmics, mlxR, mnreadR, mrfDepth, mudfold, multilevelPSA, MultiVarSel, mutSignatures, ncappc, NeatMap, nullabor, openVA, orgR, OriGen, OutbreakTools, overlapping, PairedData, pAnalysis, ParallelTree, PASenseWear, PASWR2, pauwels2014, PAWL, pcadapt, pcaPA, pcrcoal, PedCNV, pequod, perry, personalized, perspectev, phase1RMD, PhaseType, phylosim, pid, pitchRx, pkggraph, PKgraph, PKreport, PlasmaMutationDetector, plotly, plotROC, pointRes, PortfolioEffectHFT, PPtreeViz, precintcon, prevR, PRISMA, profileR, ProgGUIinR, PSAboot, qqplotr, quadrupen, QualInt, quickpsy, radiant.data, RAM, randomizeR, RATest, RatingScaleReduction, RcmdrPlugin.KMggplot2, riskRegression, RJafroc, rms, RNAseqNet, robCompositions, robmed, robustHD, rorutadis, rotations, RpeakChrom, rrecsys, RSA, rstan, rtip, rwty, Rz, scatterpie, SciencesPo, season, SEERaBomb, selfea, sensiPhy, sentometrics, Seurat, sglr, shazam, simmer.plot, simmr, SmarterPoland, SMFI5, soc.ca, sparkTable, SparseFactorAnalysis, sparsereg, spatialClust, SPEI, sprm, statisticalModeling, SubgrpID, sugrrants, summariser, survminer, swa, SWMPr, synthpop, TcGSA, tcR, tdr, TeachBayes, texmex, texmexseq, texteffect, tidyposterior, tigger, timeline, TPD, trackeR, TriMatch, TripleR, tspmeta, useful, varian, vdg, vrcp, waffle, walkr, WRTDStidal, XGR, xkcd, Xplortext, xpose, zooaRch
Reverse imports: ABHgenotypeR, acc, accSDA, ACDm, actogrammr, adapr, AdaptGauss, adaptiveGPCA, adegenet, admixturegraph, advclust, AFM, ahnr, AID, aimPlot, AlignStat, alphahull, anchoredDistr, ANOM, anomalyDetection, antitrust, aop, ArchaeoPhases, ASICS, aslib, asremlPlus, assignPOP, asVPC, atlantistools, autoimage, BACA, BacArena, BACCT, backShift, bamdit, bayesAB, BayesFM, bayesLopod, bayesplot, BayesRS, BBEST, Bclim, bcrm, bdscale, bdvis, bea.R, BETS, bibliometrix, bigKRLS, BIGL, bigstatsr, billboarder, BinarybalancedCut, Biograph, bioinactivation, bioOED, BioPET, bioplots, BioStatR, blandr, blastula, blkbox, blockseg, blscrapeR, bmlm, bmmix, BNSP, boclust, bossMaps, BPEC, BrailleR, brainGraph, brazilmaps, breakpoint, breathtestcore, bridger2, broman, brt, bsam, bsamGP, bssm, BTSPAS, bulletr, burnr, caffsim, CALF, capm, caretEnsemble, casebase, catenary, CausalImpact, Causata, cbar, ccfa, cdom, cellWise, ChainLadder, ChannelAttributionApp, ChaosGame, ChocoLattes, choroplethr, choroplethrAdmin1, CINNA, civis, ck37r, classify, classyfire, cleanEHR, clhs, clickstream, clifro, climbeR, ClimClass, clinDR, ClusterR, clustMD, clustRcompaR, cmaesr, cobalt, cocoreg, cofeatureR, coinmarketcapr, CollapsABEL, CollapseLevels, colormap, colorpatch, colorplaner, colourpicker, CommT, complmrob, confidence, ConfoundedMeta, Conigrave, cooccur, CoordinateCleaner, CopulaDTA, corrr, cosinor, CosmoPhotoz, countyfloods, countyweather, covafillr, covmat, cowbell, cplm, cpr, cricketr, crosstalk, csabounds, cutoffR, cytometree, darch, darksky, dartR, DataExplorer, DCD, dcmr, ddpcr, DeLorean, dendextend, dendroTools, densityClust, DescribeDisplay, detzrcr, DFIT, Dforest, dfped, dfpk, dgo, diagis, DiallelAnalysisR, diceR, dief, disco, diveRsity, DiversityOccupancy, DLMtool, dlstats, dMod, docxtools, dr4pl, drLumi, dslabs, dsm, DstarM, DTR, dtwclust, DVHmetrics, DynNom, dynsim, dynsurv, EasyHTMLReport, easyml, ecd, EcoGenetics, ecolottery, ecotox, ecr, edarf, edeaR, edgar, edstan, eechidna, EEM, effectFusion, EffectLiteR, ega, egcm, EMAtools, emdi, emil, emmeans, emojifont, EmpiricalCalibration, enpls, EnvStats, EpiDynamics, episensr, episheet, esmisc, ESTER, evaluator, EValue, evolqg, EvolutionaryGames, Evomorph, evoper, ewoc, explor, exploreR, exreport, extracat, eyetrackingR, ez, ezsim, factorMerger, FAOSTAT, fastqcr, fastR2, fcm, fdANOVA, fdq, fence, Fgmutils, FinCal, FindIt, findviews, FLightR, fmriqa, fontHind, fontMPlus, forecast, forecastHybrid, forestinventory, frailtyEM, frailtySurv, FREddyPro, FreqProf, FRK, fSRM, funModeling, futureheatwaves, fuzzyforest, G2Sd, gaiah, gastempt, GCalignR, GDINA, genBaRcode, GeneralizedUmatrix, geneSLOPE, geofacet, GeomComb, geomerge, GERGM, GerminaR, getmstatistic, gfcanalysis, gfer, GGally, ggChernoff, ggconf, ggdendro, ggdmc, GGEBiplots, ggeffects, ggenealogy, ggExtra, ggFacetSample, ggfan, ggfittext, gggenes, ggguitar, gghalfnorm, gghighlight, ggiraphExtra, gglogo, ggloop, ggmuller, ggplotAssist, ggplotgui, ggpval, ggQC, ggRandomForests, ggsci, ggseqlogo, ggsignif, ggspectra, ggstance, ggThemeAssist, ggthemes, ghibli, gitter, GJRM, glycanr, gmum.r, gogamer, greport, gridsampler, growcurves, growfunctions, GSparO, gsynth, gtrendsR, GUIgems, gunsales, gWQS, hBayesDM, HBP, hdm, hdnom, heatmaply, heemod, hexSticker, hierarchicalDS, hierarchicalSets, HighDimOut, HistDAWass, HLMdiag, HMP, HoRM, horserule, hrbrthemes, HTSSIP, hurricaneexposure, hybridModels, hyfo, IAPWS95, IAT, ibmdbR, IGM.MEA, iJRF, imageData, imbalance, IMP, imputeTestbench, IncDTW, incidence, inctools, IncucyteDRC, iNEXT, iNextPD, Information, InformationValue, IntClust, IntegratedJM, IntegratedMRF, interflex, intsvy, ipft, iprior, IPtoCountry, iqspr, ITGM, ivmodel, iWISA, jcolors, jmv, joineRML, jtools, kdetrees, kgschart, kobe, KraljicMatrix, l1kdeconv, LANDD, lans2r, largeVis, LBSPR, ldatuning, ldhmm, learningCurve, lemon, lg, lifelogr, lime, lindia, linear.tools, llama, lmerTest, LocFDRPois, logisticPCA, LOGIT, lpdensity, lsl, lslx, lvplot, m2b, mafs, manhattanly, mapfuser, mapr, marmap, mau, MAVIS, mbgraphic, mcMST, Mcomp, mdpeer, mdsr, meaRtools, medmod, MEGENA, meltt, memapp, meme, memery, MendelianRandomization, merTools, metacoder, MetaComp, metagen, metaheur, MetaIntegrator, MetaLonDA, MetamapsDB, metamisc, metaMix, metaplot, metaplotr, metaviz, Methplot, mglR, microbenchmark, micromap, MiRAnorm, miscset, mistral, mixR, MixSIAR, mizer, mlmc, mlmm, mlr, Mobilize, modeval, momentuHMM, Momocs, morse, mosaic, mosaicModel, mousetrap, moveHMM, moveVis, mplot, mpoly, mrMLM, MRMR, MSCMT, mtconnectR, mudata, mudata2, multdyn, multiDimBio, MultiMeta, multipanelfigure, mvdalab, myTAI, nandb, naniar, neatmaps, netgen, NetworkChange, NetworkInference, networkreporting, NetworkRiskMeasures, networktools, NeuralNetTools, neuropsychology, NFP, nhstplot, nima, nlmixr, NLMR, nlstimedist, NMF, noaastormevents, NormalizeMets, NORRRM, nparACT, NPflow, npregfast, nprobust, oaPlots, oaxaca, obAnalytics, oddsratio, olsrr, OmicsPLS, onemap, onewaytests, OpasnetUtils, openEBGM, OpenStreetMap, optiRum, orderedLasso, ordinalForest, osmplotr, otvPlots, outbreaker2, OutliersO3, P2C2M, pa, PAC, pacotest, paleofire, partialAR, partialCI, patPRO, patternplot, PCADSC, pcr, pcrsim, PDN, pdp, pems.utils, penaltyLearning, perccalc, performanceEstimation, permubiome, perturbR, petro.One, PGRdup, Phxnlme, PhyInformR, phylopath, pifpaf, pinbasic, pipe.design, pirate, PKPDmisc, planar, Plasmidprofiler, platetools, plotluck, plotMElm, PlotPrjNetworks, plotrr, pltesim, pmc, pogit, politeness, polypoly, PopED, PopGenReport, poppr, popsom, POUMM, powerbydesign, powerlmm, prcbench, prcr, precrec, predictionInterval, predictmeans, PredictTestbench, PredPsych, PReMiuM, preprosim, preproviz, preText, pRF, primerTree, prism, pROC, processmapR, processmonitR, productplots, ProjectionBasedClustering, projections, projmanr, prophet, proportion, propr, proteomics, pscore, psda, PSLM2015, PSTR, psychmeta, psycho, PTXQC, QCAtools, QCSimulator, qdap, qgraph, qicharts, qicharts2, qte, quanteda, QuantumClone, quickPlot, quickReg, quokar, qwraps2, r2glmm, radiant.basics, radiant.model, radiant.multivariate, rags2ridges, randomForestExplainer, randomUniformForest, rangeMapper, raptr, rattle, RBesT, rbison, RBMRB, rbokeh, rcartocolor, rchess, RcmdrPlugin.FuzzyClust, rddensity, rddtools, rdiversity, RDS, readability, reda, refund, refund.shiny, reghelper, RegularizedSCA, ReinforcementLearning, RelimpPCR, repijson, replicationInterval, reproducer, rfigshare, rfisheries, RFmarkerDetector, rfPermute, rgbif, RGraphics, RImagePalette, rinat, rKIN, RmarineHeatWaves, rmcfs, rnoaa, RNOmni, RNRCS, rnrfa, robustlmm, rolypoly, rplos, RPPanalyzer, rprev, rpsftm, rreg, rrepast, rrpack, rrr, rSARP, RSDA, rsMove, rSPACE, rSQM, RSSL, rstanarm, RStoolbox, RSwissMaps, rtimicropem, RtutoR, rvertnet, rWBclimate, ryouready, saeRobust, saeSim, scatr, SCGLR, scmamp, scorecard, SCORPIUS, sdcMicro, SensMap, SensMixed, SensusR, SentimentAnalysis, sentimentr, SeqFeatR, sgd, shadowtext, SHELF, ShinyItemAnalysis, shinyKGode, shinystan, SIBER, sicegar, sidier, SimMultiCorrData, simPH, SixSigma, sjPlot, slackr, smoof, smpic, snht, snpEnrichment, sNPLS, soilcarbon, solarius, sorvi, SpaCCr, sparsediscrim, sparsevar, spartan, SpatialEpiApp, spatialwarnings, spcosa, speaq, specmine, spef, spikeSlabGAM, spind, spmoran, spongecake, sppmix, squid, ss3sim, stacomiR, starma, starmie, statar, statcheck, statebins, StatRank, statsDK, stormwindmodel, stpp, strataG, StroupGLMM, structSSI, strvalidator, subspaceMOA, SUMMER, superheat, sure, survivALL, survMisc, SurvRank, survtmle, survutils, sValues, svars, svdvis, swfscMisc, sysid, tadaatoolbox, tcgsaseq, teachingApps, TELP, tetraclasse, themetagenomics, thief, tidyinftheo, tidyquant, tidyverse, tigerstats, timelineR, timelineS, TippingPoint, toaster, TOSTER, toxplot, TrajDataMining, TreatmentSelection, treeclim, treeDA, treemap, treemapify, trelliscope, tRophicPosition, TSCS, tsiR, TSMining, TSS.RESTREND, tvm, tweet2r, ubeR, ukbtools, UpSetR, userfriendlyscience, valr, valuer, vanddraabe, VDAP, vdmR, VetResearchLMM, viridis, visdat, vmd, vmsbase, vortexR, voteogram, voxel, vpc, vqtl, VRPM, VWPre, wakefield, walker, walrus, waterfalls, Wats, windfarmGA, wppExplorer, wql, WVPlots, x.ent, xray, xsp, xxIRT, yorkr, yuimaGUI, zebu, zFactor, zonator, zooaRchGUI, ztype
Reverse suggests: abctools, abd, agridat, aire.zmvm, alfred, ameco, archetypes, archivist, ARPobservation, ARTool, automap, ballr, bang, BatchGetSymbols, bayesbio, bbmle, BCEA, bcp, benchmarkme, benchr, benthos, bib2df, bife, binom, biogas, biogram, bioset, BIS, BlandAltmanLeh, bodenmiller, bomrang, BradleyTerryScalable, breathteststan, bridgedist, broom, brotli, BSDA, CAISEr, cate, cda, census, Census2016, checkmate, childsds, cholera, choroplethrMaps, chron, clusterfly, clusternomics, codingMatrices, codyn, coloc, colorednoise, comtradr, congressbr, constellation, contoureR, countytimezones, crawl, CrossScreening, csp, cvequality, cvxclustr, Cyclops, dams, data.table, datarobot, datasauRus, dbplot, deconvolveR, deGradInfer, demi, DGCA, dielectric, dimRed, directlabels, disclapmix, doBy, dodgr, dpcR, dplyr, DrBats, dynfrail, earthtones, EbayesThresh, ecb, ecoengine, edfReader, edgarWebR, eemR, eesim, EFDR, emuR, enrichwith, etl, etm, europepmc, eurostat, evaluate, expss, ExtDist, eyelinker, FDboost, fermicatsR, fetchR, FField, fiftystater, fingertipsR, fitbitScraper, fitdistrplus, flacco, flexrsurv, flowr, forcats, ForecastFramework, forwards, fourierin, fractional, frequencyConnectedness, freqweights, frontiles, FSelectorRcpp, funData, funrar, fuser, fuzzyjoin, gapminder, gcookbook, GDAdata, gender, geoknife, getCRUCLdata, GetDFPData, GetHFData, GetITRData, GetLattesData, GetTDData, ggROC, githubinstall, glmmTMB, glue, googlesheets, grattan, Greg, gridDebug, gridExtra, GROAN, groupdata2, growthcurver, gsloid, GSODR, gutenbergr, h2o, harrietr, hazus, hei, hesim, heuristica, highcharter, hIRT, HistData, historydata, httk, hutils, huxtable, HWxtest, icarus, icd9, IGP, imager, imaginator, installr, ipumsr, JacobiEigen, jmvcore, kamila, keras, kfigr, Kmisc, knitrBootstrap, KSD, Lahman, latex2exp, lda, LDheatmap, LEAP, lme4, logitnorm, longCatEDA, lspline, ltbayes, MAc, macleish, MAd, maddison, magick, margins, marked, matrixStats, medicalrisk, medicare, metricsgraphics, MGLM, microplot, milr, mistat, mixpack, mlbgameday, mlrMBO, mmpf, modcmfitr, modelr, MOEADr, moonBook, mortAAR, mosaicData, MSG, mthapower, MultiBD, munsell, musica, mvtboost, mwaved, natserv, neurobase, nimble, NlsyLinks, nLTT, NNTbiomarker, nzelect, observer, OECD, officer, openwindfarm, optiSel, ordinalClust, packcircles, padr, pafdR, pagenum, palettetown, pals, pander, parallelDist, ParamHelpers, paramtest, parlitools, parsemsf, parSim, passport, PBImisc, PDQutils, pdSpecEst, PeakError, PeakSegDP, PeakSegJoint, PeakSegOptimal, peptider, phonics, photobiologyInOut, photobiologyLamps, photobiologyLEDs, photobiologyPlants, physiology, pivottabler, PKNCA, playwith, plspm, pomp, popEpi, popReconstruct, predatory, preference, preprocomb, profr, profvis, ProjectTemplate, PRROC, PSCBS, psd, pseval, pwr, pxweb, qualvar, queuecomputer, R2admb, R6, ragtop, raincpc, rangemodelR, rasterVis, raw, rbefdata, rclimateca, RcmdrPlugin.MA, RCMIP5, rcongresso, rdefra, RDML, rdpla, Rdtq, re2r, realestateDK, recipes, rEDM, rem, replyr, ReporteRs, rerddap, reval, revdbayes, rex, RFinfer, rfordummies, RGCCA, Rilostat, rivr, rmcorr, rmetasim, RndTexExams, Rnightlights, rnpn, robustbase, rODE, rollply, ropenaq, rpdo, rpf, rPref, rsample, rsoi, rstansim, rsvd, rsvg, rtematres, rtf, rtide, rtimes, rtweet, rvinecopulib, sadists, SamplerCompare, sand, scanstatistics, scdhlm, SDaA, SDEFSR, sdmpredictors, sdmvspecies, seewave, sensitivity, sf, sgmcmc, shiny, shinyjqui, sigmoid, simcausal, SimDesign, simglm, simstudy, simTool, simulator, sitmo, sjlabelled, sjmisc, sjstats, slim, Sofi, sotkanet, sparklyr, sparseMVN, spbabel, spew, splithalf, srvyr, strider, StructFDR, SuperLearner, surveillance, tableone, tabplot, taRifx, TeachingDemos, teamcolors, testassay, tictactoe, tidytext, tidyxl, tigris, tikzDevice, TimeProjection, tint, tmap, Tmisc, tourr, tourrGui, toxboot, trapezoid, treecm, treespace, trialr, tribe, tropr, tufterhandout, tukeytrend, UBL, ukgasapi, unvotes, UsingR, usmap, vcdExtra, vcfR, vdiffr, vipor, viridisLite, visreg, VSE, vtreat, warbleR, wbstats, WeightedROC, wesanderson, WHO, widyr, wikipediatrend, wordbankr, WordR, wrswoR, wrswoR.benchmark, xgboost, XLConnect, xtractomatic, zenplots, zoo, zoocat
Reverse enhances: rsunlight, tis

Linking:

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