Skip to content

Commit a6a9853

Browse files
committed
Merge branch 'session3-eric' of https://github.com/cct-datascience/ggplot2-workshop-series into session3-eric
2 parents 24732cf + b1a4e61 commit a6a9853

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

2024/03-extensions/slides.qmd

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,11 @@ p3 <- ggplot(penguins, aes(x = body_mass_g)) +
108108
```
109109

110110
::: notes
111-
112111
Things to notice:
113112

114-
- Plots areas are aligned despite one not having a y-axis label
115-
- Only one legend
116-
- Labels for panels A, B, C
117-
113+
- Plots areas are aligned despite one not having a y-axis label
114+
- Only one legend
115+
- Labels for panels A, B, C
118116
:::
119117

120118
## Example plots
@@ -132,7 +130,6 @@ p3 <-
132130
geom_histogram()
133131
```
134132

135-
136133
## Combine plots
137134

138135
::: columns
@@ -163,9 +160,7 @@ p1 + p2 + plot_layout(guides = "collect")
163160
```
164161

165162
::: notes
166-
167163
identical means same scale, same title, same glyph
168-
169164
:::
170165

171166
## Combining axes
@@ -180,9 +175,9 @@ p1 + p2 + plot_layout(guides = "collect", axes = "collect")
180175

181176
For more options for controlling layout, see the related vignette on the package website.
182177

183-
- Adding empty areas
184-
- Inset plots
185-
- Adjusting widths and heights
178+
- Adding empty areas
179+
- Inset plots
180+
- Adjusting widths and heights
186181

187182
## Tags
188183

@@ -208,7 +203,6 @@ You can even combine `ggplot2` plots with base R plots with a special syntax
208203
p1 + ~hist(penguins$bill_depth_mm, main = "")
209204
```
210205

211-
212206
## Getting Help
213207

214208
- `patchwork`: [Package website](https://patchwork.data-imaginist.com/index.html)

0 commit comments

Comments
 (0)