You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
davidhodge931
changed the title
The identity function does not work as expected on categorical y axis and numeric x axis
The I function does not work as expected on categorical y axis and numeric x axis
Jan 27, 2025
Note behaviour of the annotated label in p2 below. I would have expected it to match that in p1
The text was updated successfully, but these errors were encountered: