-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Common border for patchwork #201
Comments
Thanks! The solution works for this particular case. However, would it be possible to compose the output with other plots- say if I wanted a 2x2 grid of each of the above (2 plots inside a shared border)? |
library(ggplot2)
library(patchwork)
theme_border <- theme_gray() +
theme(plot.background = element_rect(fill = NA, colour = 'black', size = 3))
ggplot() +
ggplot() +
plot_annotation(theme = theme_border) Created on 2020-11-06 by the reprex package (v0.3.0) |
This should do what you want:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the lovely tool! I would like to have a single outline border for a patchwork.
using the
& theme(...)
option as suggested in #106 does not seem to work. Instead it applies a border on each individual plot.(ggplot() + ggplot()) & theme(panel.border = element_rect(colour = "black", fill=NA))
How can obtain this:

The text was updated successfully, but these errors were encountered: