Communication editor comments

This commit is contained in:
mine-cetinkaya-rundel 2023-03-11 11:26:12 -05:00
parent 134de2e4a1
commit 6da9738215
1 changed files with 1 additions and 1 deletions

View File

@ -943,7 +943,7 @@ p3 <- ggplot(mpg, aes(x = cty, y = hwy)) +
``` ```
Additionally, patchwork allows you to collect legends from multiple plots into one common legend, customize the placement of the legend as well as dimensions of the plots, and add a common title, subtitle, caption, etc. to your plots. Additionally, patchwork allows you to collect legends from multiple plots into one common legend, customize the placement of the legend as well as dimensions of the plots, and add a common title, subtitle, caption, etc. to your plots.
In the following, we have 5 plots. Below we create 5 plots.
We have turned off the legends on the box plots and the scatterplot and collected the legends for the density plots at the top of the plot with `& theme(legend.position = "top")`. We have turned off the legends on the box plots and the scatterplot and collected the legends for the density plots at the top of the plot with `& theme(legend.position = "top")`.
Note the use of the `&` operator here instead of the usual `+`. Note the use of the `&` operator here instead of the usual `+`.
This is because we're modifying the theme for the patchwork plot as opposed to the individual ggplots. This is because we're modifying the theme for the patchwork plot as opposed to the individual ggplots.