Skip to content
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

patchwork with geom_label ::::: Not supported? #307

Open
g-pacheco opened this issue Sep 17, 2022 · 1 comment
Open

patchwork with geom_label ::::: Not supported? #307

g-pacheco opened this issue Sep 17, 2022 · 1 comment
Labels
reprex needs a minimal reproducible example

Comments

@g-pacheco
Copy link

Hello all,

This is much more a question than an issue. I have been trying to add geom_label to my patchwork object to no avail. Thus, I have been wondering if this move is even possible at all. If not directly, would it be possible to convert the patchwork object into a ggplot object and then apply the geom_label function to it? I acknowledge the plot_annotation function but I was really hoping I would be able to stick to the geom_label one.

Thanks in advance, George.

Map1 / (Map2 | Map3 | Map4) + plot_layout(widths = c(1)) +
  geom_label(aes(label = "Faroe Islands"), x = .1219, y = .93, size = 7.5, fontface = "bold", fill = "#c6dbef", color = "black") +
  geom_label(aes(label = "British Isles"), x = .3, y = .93, size = 7.5, fontface = "bold", fill = "#c6dbef", color = "black") +
  geom_label(aes(label = "Sri Lanka"), x = .57, y = .93, size = 7.5, fontface = "bold", fill = "#c6dbef", color = "black")
@thomasp85 thomasp85 added the reprex needs a minimal reproducible example label Aug 7, 2023
@thomasp85
Copy link
Owner

Hi - can you please provide a minimal reproducible example that shows the issue. There is no intended lack of support for geom_label() but I'm also not quite sure what you expect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reprex needs a minimal reproducible example
Projects
None yet
Development

No branches or pull requests

2 participants