I have some trouble harmonizing the sizes of different elements of my plot. Specifically I want the size of an annotation to be the same as the size of the title of the y-axis.
The following code results in different sizes however:
library(ggplot2)
test_data <- data.frame(x = c(1), y = c(1))
ggplot(test_data) +
geom_point(aes(x = x, y = y)) +
theme_bw(base_size = 14) +
annotate("text", label = "A", x = 0.975, y = 1.025, size = unit(14, "pt")) +
ylab("Why not the same size?") +
theme(axis.title.y = element_text(size = unit(14, "pt")))

What gives?
