Communication editor comments
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user