Home icon
Data Visualisation Guide

Geometric objects in detail: intro

2 minutes read

Geometric objects in detail

In the Grammar of Graphics, geometric objects are the visual elements of which the properties are used to encode data. Many geometric objects exist, and this module intends to give an overview of the available geometries.

Here, we step away from the abstract Grammar of Graphics, and we are going to reference the visualisation tools based on the Grammar that are introduced in Implementations of the Grammar of Graphics. These tools are:

  • ggplot2, a visualisation package for the R programming language (the “gg” stands for Grammar of Graphics)
  • Vega-Lite, a language to describe visualisations with the Grammar, using the JavaScript Object Notation syntax (JSON)
  • Observable Plot, an open-source JavaScript library

All three tools share the Grammar of Graphics philosophy, but their practical implementation and terminology differ a little bit between them. For example, geometric objects are called geometries (or geoms for short) in ggplot2, while they are called marks in Vega-Lite and Observable Plot. In this training, we are using the term “geometries”.

This Geometric objects in detail pages give an overview of the geometries available in the 3 tools, without going too much into detail about how the geometries can be used in each tool. This is discussed in:

Related pages

GoG building blocks: overview

Intro to tidy data

Chart type templates versus the Grammar of Graphics: introduction

From data to visualisation

Introduction to aesthetics

Point geometries

Geometric objects in detail