Other packages > Find by keyword >

ggplot2  

Create Elegant Data Visualisations Using the Grammar of Graphics
View on CRAN: Click here


Download and install ggplot2 package within the R console
Install from CRAN:
install.packages("ggplot2")

Install from Github:
library("remotes")
install_github("cran/ggplot2")

Install by package version:
library("remotes")
install_version("ggplot2", "4.0.1")



Attach the package and use:
library("ggplot2")
Maintained by
Thomas Lin Pedersen
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2007-06-01
Latest Update: 2025-04-09
Description:
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.
How to cite:
Thomas Lin Pedersen (2007). ggplot2: Create Elegant Data Visualisations Using the Grammar of Graphics. R package version 4.0.1, https://cran.r-project.org/web/packages/ggplot2. Accessed 23 Jun. 2026.
Previous versions and publish date:
0.5.1 (2007-06-10 21:49), 0.5.2 (2007-06-18 08:10), 0.5.4 (2007-07-08 21:58), 0.5.5 (2007-09-01 13:04), 0.5.6 (2007-10-20 09:22), 0.5.7 (2008-01-11 18:32), 0.5 (2007-06-01 14:27), 0.6 (2008-04-03 18:26), 0.7 (2008-10-05 13:01), 0.8.1 (2008-12-14 12:08), 0.8.2 (2009-02-25 08:50), 0.8.3 (2009-04-20 19:22), 0.8.4 (2009-12-09 16:32), 0.8.5 (2009-12-16 08:37), 0.8.6 (2010-02-18 17:53), 0.8.7 (2010-03-02 17:58), 0.8.8 (2010-07-05 20:25), 0.8.9 (2010-12-23 19:17), 0.8 (2008-11-21 09:25), 0.9.0 (2012-03-01 08:01), 0.9.1 (2012-05-08 04:15), 0.9.2.1 (2012-09-11 12:19), 0.9.2 (2012-09-04 08:16), 0.9.3.1 (2013-03-02 15:57), 0.9.3 (2012-12-05 13:11), 1.0.0 (2014-05-21 15:36), 1.0.1 (2015-03-17 17:49), 2.0.0 (2015-12-18 10:45), 2.1.0 (2016-03-01 15:47), 2.2.0 (2016-11-11 12:24), 2.2.1 (2016-12-30 22:45), 3.0.0 (2018-07-03 19:20), 3.1.0 (2018-10-25 06:30), 3.1.1 (2019-04-07 11:30), 3.2.0 (2019-06-16 16:00), 3.2.1 (2019-08-11 00:30), 3.3.0 (2020-03-05 17:00), 3.3.1 (2020-05-29 01:20), 3.3.2 (2020-06-19 15:00), 3.3.3 (2020-12-30 16:30), 3.3.4 (2021-06-16 06:20), 3.3.5 (2021-06-25 13:30), 3.3.6 (2022-05-03 09:00), 3.4.0 (2022-11-04 16:20), 3.4.1 (2023-02-10 14:20), 3.4.2 (2023-04-03 16:10), 3.4.3 (2023-08-14 13:20), 3.4.4 (2023-10-12 13:40), 3.5.0 (2024-02-23 10:30), 3.5.1 (2024-04-23 10:00), 3.5.2 (2025-04-09 11:40), 4.0.0 (2025-09-11 09:10), 4.0.1 (2025-11-14 10:20), 4.0.2 (2026-02-03 09:50)
Other packages that cited ggplot2 R package
View ggplot2 citation profile
Other R packages that ggplot2 depends, imports, suggests or enhances
Complete documentation for ggplot2
Functions, R codes and Examples using the ggplot2 R package
Some associated functions: absoluteGrob . add_theme . aes . aes_ . aes_all . aes_auto . aes_colour_fill_alpha . aes_eval . aes_group_order . aes_linetype_size_shape . aes_position . annotate . annotation_custom . annotation_logticks . annotation_map . annotation_raster . as.list.ggproto . as_labeller . autolayer . autoplot . benchplot . bidirection . binned_scale . borders . calc_element . combine_vars . continuous_scale . coord_cartesian . coord_fixed . coord_flip . coord_map . coord_munch . coord_polar . coord_trans . cut_interval . datetime_scale . diamonds . discrete_scale . draw_key . economics . element . element_grob . element_render . expand_limits . expansion . facet_grid . facet_null . facet_wrap . faithfuld . find_panel . fortify-multcomp . fortify.lm . fortify.map . fortify . fortify.sp . geom_abline . geom_bar . geom_bin_2d . geom_blank . geom_boxplot . geom_contour . geom_count . geom_density . geom_density_2d . geom_dotplot . geom_errorbarh . geom_function . geom_hex . geom_histogram . geom_jitter . geom_linerange . geom_map . geom_path . geom_point . geom_polygon . geom_qq . geom_quantile . geom_ribbon . geom_rug . geom_segment . geom_smooth . geom_spoke . geom_text . geom_tile . geom_violin . get_alt_text . gg-add . gg_dep . ggplot . ggplot2-ggproto . ggplot2-package . ggplotGrob . ggplot_add . ggplot_build . ggplot_gtable . ggproto . ggsave . ggsf . ggtheme . graphical-units . guide-exts . guide_axis . guide_bins . guide_colourbar . guide_coloursteps . guide_legend . guide_none . guides . hmisc . is.Coord . is.facet . is.ggplot . is.rel . is.theme . label_bquote . labeller . labellers . labs . last_plot . layer . layer_sf . limits . lims . luv_colours . map_data . max_height . mean_se . merge_element . midwest . mpg . msleep . position_dodge . position_identity . position_jitter . position_jitterdodge . position_nudge . position_stack . presidential . print.ggplot . print.ggproto . qplot . reexports . register_theme_elements . remove_missing . render_axes . render_strips . resolution . scale_alpha . scale_binned . scale_brewer . scale_colour_continuous . scale_colour_discrete . scale_continuous . scale_date . scale_discrete . scale_gradient . scale_grey . scale_hue . scale_identity . scale_linetype . scale_linewidth . scale_manual . scale_shape . scale_size . scale_steps . scale_type . scale_viridis . seals . sec_axis . set_last_plot . sf_transform_xy . should_stop . standardise_aes_names . stat_ecdf . stat_ellipse . stat_identity . stat_sf_coordinates . stat_summary . stat_summary_2d . stat_unique . summarise_plot . summary.ggplot . theme . theme_get . tidyeval . transform_position . txhousing . update_defaults . update_labels . vars . waiver . wrap_dims . zeroGrob . 
Some associated R codes: aaa-.R . aes-colour-fill-alpha.R . aes-evaluation.R . aes-group-order.R . aes-linetype-size-shape.R . aes-position.R . aes.R . annotation-custom.R . annotation-logticks.R . annotation-map.R . annotation-raster.R . annotation.R . autolayer.R . autoplot.R . axis-secondary.R . backports.R . bench.R . bin.R . compat-plyr.R . coord-.R . coord-cartesian-.R . coord-fixed.R . coord-flip.R . coord-map.R . coord-munch.R . coord-polar.R . coord-quickmap.R . coord-sf.R . coord-transform.R . data.R . facet-.R . facet-grid-.R . facet-null.R . facet-wrap.R . fortify-lm.R . fortify-map.R . fortify-multcomp.R . fortify-spatial.R . fortify.R . geom-.R . geom-abline.R . geom-bar.R . geom-bin2d.R . geom-blank.R . geom-boxplot.R . geom-col.R . geom-contour.R . geom-count.R . geom-crossbar.R . geom-curve.R . geom-defaults.R . geom-density.R . geom-density2d.R . geom-dotplot.R . geom-errorbar.R . geom-errorbarh.R . geom-freqpoly.R . geom-function.R . geom-hex.R . geom-histogram.R . geom-hline.R . geom-jitter.R . geom-label.R . geom-linerange.R . geom-map.R . geom-path.R . geom-point.R . geom-pointrange.R . geom-polygon.R . geom-quantile.R . geom-raster.R . geom-rect.R . geom-ribbon.R . geom-rug.R . geom-segment.R . geom-sf.R . geom-smooth.R . geom-spoke.R . geom-text.R . geom-tile.R . geom-violin.R . geom-vline.R . ggplot-global.R . ggplot2-package.R . ggproto.R . grob-absolute.R . grob-dotstack.R . grob-null.R . grouping.R . guide-bins.R . guide-colorbar.R . guide-colorsteps.R . guide-legend.R . guides-.R . guides-axis.R . guides-grid.R . guides-none.R . hexbin.R . import-standalone-obj-type.R . import-standalone-types-check.R . labeller.R . labels.R . layer-sf.R . layer.R . layout.R . legend-draw.R . limits.R . margins.R . performance.R . plot-build.R . plot-construction.R . plot-last.R . plot.R . position-.R . position-collide.R . position-dodge.R . position-dodge2.R . position-identity.R . position-jitter.R . position-jitterdodge.R . position-nudge.R . position-stack.R . quick-plot.R . reshape-add-margins.R . save.R . scale-.R . scale-alpha.R . scale-binned.R . scale-brewer.R . scale-colour.R . scale-continuous.R . scale-date.R . scale-discrete-.R . scale-expansion.R . scale-gradient.R . scale-grey.R . scale-hue.R . scale-identity.R . scale-linetype.R . scale-linewidth.R . scale-manual.R . scale-shape.R . scale-size.R . scale-steps.R . scale-type.R . scale-view.R . scale-viridis.R . scales-.R . stat-.R . stat-align.R . stat-bin.R . stat-bin2d.R . stat-bindot.R . stat-binhex.R . stat-boxplot.R . stat-contour.R . stat-count.R . stat-density-2d.R . stat-density.R . stat-ecdf.R . stat-ellipse.R . stat-function.R . stat-identity.R . stat-qq-line.R . stat-qq.R . stat-quantilemethods.R . stat-sf-coordinates.R . stat-sf.R . stat-smooth-methods.R . stat-smooth.R . stat-sum.R . stat-summary-2d.R . stat-summary-bin.R . stat-summary-hex.R . stat-summary.R . stat-unique.R . stat-ydensity.R . summarise-plot.R . summary.R . theme-current.R . theme-defaults.R . theme-elements.R . theme.R . utilities-break.R . utilities-checks.R . utilities-grid.R . utilities-help.R . utilities-matrix.R . utilities-resolution.R . utilities-table.R . utilities-tidy-eval.R . utilities.R . zxx.R . zzz.R .  Full ggplot2 package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

r2resize  
In-Text Resize for Images, Tables and Fancy Resize Containers in 'shiny', 'rmarkdown' and 'quarto' Documents
Automatic resizing toolbar for containers, images and tables. Various resizable or expandable contai ...
Download / Learn more Package Citations See dependency  
mrds  
Mark-Recapture Distance Sampling
Animal abundance estimation via conventional, multiple covariate and mark-recapture distance sampli ...
Download / Learn more Package Citations See dependency  
acc  
Exploring Accelerometer Data
Processes accelerometer data from uni-axial and tri-axial devices, and generates data summaries. Al ...
Download / Learn more Package Citations See dependency  
mrregression  
Regression Analysis for Very Large Data Sets via Merge and Reduce
Frequentist and Bayesian linear regression for large data sets. Useful when the data does not fit i ...
Download / Learn more Package Citations See dependency  
SAPP  
Statistical Analysis of Point Processes
Functions for statistical analysis of point processes. ...
Download / Learn more Package Citations See dependency  

27,535

R Packages

236,180

Dependencies

73,223

Author Associations

27,484

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA