1ggplot2 is a plotting system for R, based on the grammar of graphics, 2which tries to take the good parts of base and lattice graphics and 3none of the bad parts. It takes care of many of the fiddly details 4that make plotting a hassle (like drawing legends) as well as 5providing a powerful model of graphics that makes it easy to produce 6complex multi-layered graphics. 7