Abstract
A major requirement of a good data analysis is flexibility. If your data changes, or you discover something that makes you rethink your basic assumptions, you need to be able to easily change many plots at once. The main inhibitor of flexibility is code duplication. If you have the same plotting statement repeated over and over again, you’ll have to make the same change in many different places. Often just the thought of making all those changes is exhausting! This chapter will help you overcome that problem by showing you how to program with ggplot2.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 the Author
About this chapter
Cite this chapter
Wickham, H. (2016). Programming with ggplot2. In: ggplot2. Use R!. Springer, Cham. https://doi.org/10.1007/978-3-319-24277-4_12
Download citation
DOI: https://doi.org/10.1007/978-3-319-24277-4_12
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-24275-0
Online ISBN: 978-3-319-24277-4
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)