2.1 Introduction

Leland Wilkinson (Grammar of Graphics, 1999) formalized two main principles in his plotting framework:

  • Graphics = distinct layers of grammatical elements

  • Meaningful plots through aesthetic mappings

  • The essential grammatical elements to create any visualization with {ggplot2} are: