# tidyverse/ggplot2

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/tidyverse-ggplot2).**

6,948 stars · 2,131 forks · R · NOASSERTION

## Links

- GitHub: https://github.com/tidyverse/ggplot2
- Homepage: https://ggplot2.tidyverse.org
- awesome-repositories: https://awesome-repositories.com/repository/tidyverse-ggplot2.md

## Description

ggplot2 is a data visualization library for R based on a formal grammar of graphics. It provides a declarative plotting framework that allows users to create complex graphics by combining geometric objects, statistical summaries, and coordinate systems.

The system is distinguished by a layered approach to composition, where visualizations are built incrementally by stacking independent geometric, statistical, and coordinate layers. It utilizes a hierarchical styling engine to manage non-data elements such as backgrounds, fonts, and margins, and includes a multi-panel faceting tool for splitting data into a grid of small multiple plots based on discrete variables.

The library covers broad capability areas including aesthetic data mapping, statistical transformations for calculating bins and densities, and coordinate space projection for Cartesian, polar, and geospatial layouts. It also provides tools for element position adjustment to prevent overlap, visual guide configuration for axes and legends, and utilities for exporting high-resolution raster images or multi-page documents.

## Tags

### Graphics & Multimedia

- [Layered Visualization Composition](https://awesome-repositories.com/f/graphics-multimedia/layered-visualization-composition.md) — Employs a layered approach to build visualizations by stacking geometric objects, scales, and facet specifications. ([source](https://github.com/tidyverse/ggplot2/blob/main/README.md))
- [Declarative Visualization Grammars](https://awesome-repositories.com/f/graphics-multimedia/visualization-mapping/declarative-visualization-grammars.md) — Implements a formal grammar-based declarative paradigm for constructing complex data visualizations.
- [Chart Composition Layers](https://awesome-repositories.com/f/graphics-multimedia/composition-visual-layers/chart-composition-layers.md) — Builds visualizations by incrementally stacking independent geometric, statistical, and coordinate layers.
- [Geometric Data Mappings](https://awesome-repositories.com/f/graphics-multimedia/geometric-data-mappings.md) — Maps dataset variables to geometric shapes and visual properties like color and size. ([source](https://github.com/tidyverse/ggplot2/blob/main/NEWS.md))
- [Data Visualization Scales](https://awesome-repositories.com/f/graphics-multimedia/visualization-mapping/mapping-libraries/data-visualization-scales.md) — Provides mapping functions that translate abstract data domains into visual ranges like colors and coordinates.
- [Geospatial Rendering Engines](https://awesome-repositories.com/f/graphics-multimedia/geospatial-rendering-engines.md) — Converts geographic coordinates and spatial data into visual renderable layers. ([source](https://github.com/tidyverse/ggplot2/blob/main/NEWS.md))
- [Plot Annotations](https://awesome-repositories.com/f/graphics-multimedia/plot-annotations.md) — Provides tools to add text and geometric shapes to specific plot coordinates for highlighting key information. ([source](https://github.com/tidyverse/ggplot2/tree/main/R))
- [Scientific Figure Generation](https://awesome-repositories.com/f/graphics-multimedia/scientific-figure-generation.md) — Provides precise control over themes, axes, and legends to generate high-resolution figures for scientific reports.

### Artificial Intelligence & ML

- [Statistical Transformation Pipelines](https://awesome-repositories.com/f/artificial-intelligence-ml/model-training-pipelines/statistical-pipelines/statistical-transformation-pipelines.md) — Computes summary statistics, bins, and densities on-the-fly during the rendering process.
- [Statistical Analysis](https://awesome-repositories.com/f/artificial-intelligence-ml/statistical-analysis.md) — Visualizes statistical trends by computing derived values such as bins, densities, and contours from raw data.

### Part of an Awesome List

- [Charts and Visualization](https://awesome-repositories.com/f/awesome-lists/data/charts-and-visualization.md) — Provides a comprehensive framework for rendering charts and visualizations with detailed control over axes and legends. ([source](https://github.com/tidyverse/ggplot2/tree/main/R))
- [R Visualization](https://awesome-repositories.com/f/awesome-lists/devtools/r-visualization.md) — Serves as a primary library for statistical graphics and interactive data analysis within the R environment.
- [Hierarchical Chart Themes](https://awesome-repositories.com/f/awesome-lists/devtools/styling-and-theming/hierarchical-chart-themes.md) — Modifies non-data elements like backgrounds and fonts using a nested, hierarchical styling system. ([source](https://github.com/tidyverse/ggplot2/blob/main/NEWS.md))
- [Visualization and Analysis](https://awesome-repositories.com/f/awesome-lists/ai/visualization-and-analysis.md) — Grammar of graphics implementation for statistical data visualization.
- [Data Processing and Analytics](https://awesome-repositories.com/f/awesome-lists/data/data-processing-and-analytics.md) — Implementation of the grammar of graphics for data visualization.

### Data & Databases

- [Faceted Plotting Systems](https://awesome-repositories.com/f/data-databases/data-analysis-visualization/visualization-frameworks-libraries/statistical-plotting-libraries/faceted-plotting-systems.md) — Provides structural logic for partitioning data into multi-panel layouts across rows and columns. ([source](https://github.com/tidyverse/ggplot2/tree/main/R))
- [Grid Composition Tools](https://awesome-repositories.com/f/data-databases/data-analysis-visualization/visualization-frameworks-libraries/statistical-plotting-libraries/grid-composition-tools.md) — Implements a system for arranging multiple subplots in structured grids for side-by-side comparative analysis. ([source](https://github.com/tidyverse/ggplot2/blob/main/NEWS.md))
- [Incremental Composition](https://awesome-repositories.com/f/data-databases/data-analysis-visualization/visualization-frameworks-libraries/statistical-plotting-libraries/plot-element-scaling/incremental-composition.md) — Adds geometric objects, scales, and coordinate systems incrementally to build sophisticated final visualizations. ([source](https://github.com/tidyverse/ggplot2/blob/main/README.Rmd))
- [Exploratory Data Analysis](https://awesome-repositories.com/f/data-databases/exploratory-data-analysis.md) — Enables discovery of patterns and statistical insights through the creation of layered plots and faceted grids.
- [Plot Axis Customizers](https://awesome-repositories.com/f/data-databases/data-analysis-visualization/visualization-frameworks-libraries/statistical-plotting-libraries/plot-axis-customizers.md) — Offers tools for configuring labels, scales, and ticks on coordinate systems to improve chart clarity. ([source](https://github.com/tidyverse/ggplot2/blob/main/NEWS.md))
- [Legend Management](https://awesome-repositories.com/f/data-databases/data-analysis-visualization/visualization-frameworks-libraries/statistical-plotting-libraries/plot-axis-customizers/legend-management.md) — Manages the positioning and symbols used in legends to explain the mapping of data to aesthetics. ([source](https://github.com/tidyverse/ggplot2/blob/main/NEWS.md))
- [Visualization Coordinate Mapping](https://awesome-repositories.com/f/data-databases/data-mapping/coordinate-system-mapping/visualization-coordinate-mapping.md) — Defines how data values are translated to visual coordinates for various chart layouts. ([source](https://github.com/tidyverse/ggplot2/tree/main/R))
- [Geographic Data Mapping](https://awesome-repositories.com/f/data-databases/data-retrieval/geographic-data-mapping.md) — Renders geographic shapes and maps data points onto spatial coordinate systems for regional analysis.

### Scientific & Mathematical Computing

- [Faceted Plotting](https://awesome-repositories.com/f/scientific-mathematical-computing/faceted-plotting.md) — Provides a multi-panel faceting tool for splitting data into a grid of small multiple plots.
- [Coordinate Projections](https://awesome-repositories.com/f/scientific-mathematical-computing/coordinate-projections.md) — Implements mathematical utilities for calculating scales and projections for visual mapping across various coordinate systems.

### User Interface & Experience

- [Declarative Statistical Plotting](https://awesome-repositories.com/f/user-interface-experience/data-visualization-tools/data-visualization/charting-frameworks/immediate-mode-plotting-libraries/statistical-distribution-visualizers/statistical-charting-suites/declarative-statistical-plotting.md) — Uses declarative syntax to map data to graphical marks for statistical charts with automated scales. ([source](https://github.com/tidyverse/ggplot2#readme))
- [Plot](https://awesome-repositories.com/f/user-interface-experience/theme-engines/plot.md) — Utilizes a hierarchical styling engine to manage backgrounds, fonts, and margins independently of the data.
- [Visual Overlap Adjustments](https://awesome-repositories.com/f/user-interface-experience/element-positioning/visual-overlap-adjustments.md) — Shifts overlapping points using dodging, nudging, or jittering to make crowded data more visible. ([source](https://github.com/tidyverse/ggplot2/blob/main/NEWS.md))
- [Styling Architectures](https://awesome-repositories.com/f/user-interface-experience/styling-theming-systems/content-styling/styling-architectures.md) — Utilizes a hierarchical styling engine to manage non-data elements through a system of nested style overrides.
