I don't understand why I'm getting Error in is.data.frame(x) : object 'x' not found from the following code.
library(tidyverse)
data.frame(x = 1:3, y = 7:9) %>%
ggplot(aes(x,y)) +
geom_point() +
annotate("text", x = 1, y = 7,
label = paste("sd(x) =", sd(x)))