Closed
Description
Note behaviour of the annotated label in p2 below. I would have expected it to match that in p1
library(tidyverse)
library(palmerpenguins)
library(patchwork)
p1 <- penguins |>
ggplot() +
geom_point(
aes(x = flipper_length_mm,
y = body_mass_g),
) +
annotate("label", x = I(0.2), y = I(0.8), label = "Here")
p2 <- penguins |>
ggplot() +
geom_bar(
aes(y = sex, fill = species), position = "dodge",
) +
annotate("label", x = I(0.2), y = I(0.8), label = "Here")
p1 + p2
