Abstract
So far, every example in this book has started with a nice dataset that’s easy to plot. That’s great for learning (because you don’t want to struggle with data handling while you’re learning visualisation), but in real life, datasets hardly ever come in exactly the right structure. To use ggplot2 in practice, you’ll need to learn some data wrangling skills. Indeed, in my experience, visualisation is often the easiest part of the data analysis process: once you have the right data, in the right format, aggregated in the right way, the right visualisation is often obvious.
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 subscriptionsReferences
Wickham H (2007) Reshaping data with the reshape package. J Stat Soft 21(12). http://www.jstatsoft.org/v21/i12/paper
Wickham H (2014) Tidy data. J Stat Softw 59. http://www.jstatsoft.org/v59/i10/
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 the Author
About this chapter
Cite this chapter
Wickham, H. (2016). Data Analysis. In: ggplot2. Use R!. Springer, Cham. https://doi.org/10.1007/978-3-319-24277-4_9
Download citation
DOI: https://doi.org/10.1007/978-3-319-24277-4_9
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)