ggplot

Noun · Development

Definitions

  1. Usually ggplot2, the dominant data visualisation package for the R language, created by Hadley Wickham in the mid-2000s and based on Leland Wilkinson's book The Grammar of Graphics. Rather than choosing from named chart types, users describe a plot as layers built from components: data, aesthetic mappings that connect variables to visual properties such as position, colour, and size, geometric objects such as points, lines, and bars, statistical transformations, scales, coordinate systems, and facets that split data into small multiples. A plot is assembled by adding layers with the + operator, as in ggplot(df, aes(x, y)) + geom_point() + facet_wrap(~group). This composable approach makes complex, consistent graphics short to express and easy to modify. ggplot2 is a core part of the tidyverse, supports an extensive ecosystem of extension packages and themes, and has inspired ports to other languages, such as plotnine for Python.

    In plain English: A popular R library for making charts and graphs by describing what you want layer by layer — like building a plot from a recipe instead of drawing it by hand.

    Example: "Once you learn ggplot, every other charting library feels like finger-painting."

Related Terms