In this chapter, you will learn to make a wide variety of plots with your first ggplot2 function, qplot(), short for quick plot. qplot makes it easy to produce complex plots, often requiring several lines of code using other plotting systems, in one line. qplot() can do this because it’s based on the grammar of graphics, which allows you to create a simple, yet expressive, description of the plot. In later chapters you’ll learn to use all of the expressive power of the grammar, but here we’ll start simple so you can work your way up. You will also start to learn some of the ggplot2 terminology that will be used throughout the book.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2009 Springer-Verlag New York
About this chapter
Cite this chapter
Wickham, H. (2009). Getting started with qplot. In: ggplot2. Use R. Springer, New York, NY. https://doi.org/10.1007/978-0-387-98141-3_2
Download citation
DOI: https://doi.org/10.1007/978-0-387-98141-3_2
Published:
Publisher Name: Springer, New York, NY
Print ISBN: 978-0-387-98140-6
Online ISBN: 978-0-387-98141-3
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)