ggplot2 extended

Welcome

This is the website for my book ggplot2 extended. It is about extending the functionality of the ggplot2 (Wickham 2024) R package by Hadley Wickham. Many extension packages have come out since the release of ggplot2. This book is about how to use them to make the most out of the whole ggplot2 ecosystem. And which of the many extensions to use in the first place.

I will go through the very basics of how ggplot2 works in 1  ggplot2. But this book does assume some basic understanding of R and ggplot2.

If you’re starting with R, R for Data Science (Wickham, Çetinkaya-Rundel, and Grolemund 2023) is a good first stop. The book even contains three chapters on visualizing data with ggplot2.

Want to take a comprehensive look into ggplot2 and the grammar of graphics first? Check out Hadley’s book ggplot2: Elegant Graphics for Data Analysis (Wickham 2016). You can find the work-in-progress 3rd edition online.

This website is and will always be free, licensed under the CC BY-NC-ND 4.0 DEED license. Once I’ve finished writing the whole book, there will be a physical copy of the book available. Stay tuned!

Please note that ggplot2 extended uses a Contributor Code of Conduct. By contributing to this book, you agree to abide by its terms.

This book is written by Antti Rask.

Acknowledgments

This book was built with Quarto and is hosted on Netlify.