-
Notifications
You must be signed in to change notification settings - Fork 683
/
extending.qmd
15 lines (13 loc) · 952 Bytes
/
extending.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Advanced topics {#sec-advanced-topics .unnumbered}
```{r}
#| echo: false
#| message: false
#| results: asis
source("common.R")
```
As you become more fluent in ggplot2, you may find yourself wanting to use it in more advanced ways.
You may want to write your own functions that create plots in a reusable fashion, or you may want to write your own packages that extend ggplot2.
If this describes you, then the chapters in this part of the book are designed to get you started.
In @sec-programming we discuss programming techniques you can use to create flexible and reusable ggplot2 visualisations.
This is followed by @sec-internals which dives into the mechanics of what ggplot2 does when creating a plot, and @sec-extensions which builds upon this discussion to talk about how ggplot2 extensions are written.
Finally, in order to make these ideas a little more concrete, @sec-spring1 presents a worked example of developing a ggplot2 extension.