From 6da97382152c435960558a5560b9c84c58d2bd4a Mon Sep 17 00:00:00 2001 From: mine-cetinkaya-rundel Date: Sat, 11 Mar 2023 11:26:12 -0500 Subject: [PATCH] Communication editor comments --- communication.qmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/communication.qmd b/communication.qmd index 1363105..683b620 100644 --- a/communication.qmd +++ b/communication.qmd @@ -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. -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")`. 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.