ABSTRACT

This chapter describes the fundamental tools that grid provides for drawing graphical scenes. There are basic features such as functions for drawing lines, rectangles, and text, together with more sophisticated and powerful concepts such as viewports, layouts, and units, which allow basic output to be located and sized in very flexible ways.

This chapter is useful for drawing a wide variety of pictures, including statistical plots from scratch, and it is useful for adding to or modifying plots created by lattice or ggplot2.