File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -108,13 +108,11 @@ p3 <- ggplot(penguins, aes(x = body_mass_g)) +
108
108
```
109
109
110
110
::: notes
111
-
112
111
Things to notice:
113
112
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
118
116
:::
119
117
120
118
## Example plots
@@ -132,7 +130,6 @@ p3 <-
132
130
geom_histogram()
133
131
```
134
132
135
-
136
133
## Combine plots
137
134
138
135
::: columns
@@ -163,9 +160,7 @@ p1 + p2 + plot_layout(guides = "collect")
163
160
```
164
161
165
162
::: notes
166
-
167
163
identical means same scale, same title, same glyph
168
-
169
164
:::
170
165
171
166
## Combining axes
@@ -180,9 +175,9 @@ p1 + p2 + plot_layout(guides = "collect", axes = "collect")
180
175
181
176
For more options for controlling layout, see the related vignette on the package website.
182
177
183
- - Adding empty areas
184
- - Inset plots
185
- - Adjusting widths and heights
178
+ - Adding empty areas
179
+ - Inset plots
180
+ - Adjusting widths and heights
186
181
187
182
## Tags
188
183
@@ -208,7 +203,6 @@ You can even combine `ggplot2` plots with base R plots with a special syntax
208
203
p1 + ~hist(penguins$bill_depth_mm, main = "")
209
204
```
210
205
211
-
212
206
## Getting Help
213
207
214
208
- ` patchwork ` : [ Package website] ( https://patchwork.data-imaginist.com/index.html )
You can’t perform that action at this time.
0 commit comments