I am creating a ggplot chart where I need to put some annotation. I can do that but the text is not really pointing exactly the date that I like annotate. Is there a way to draw an arrow to axix where I like create the annotation.
I have this:
ggplot(df, aes(Date, CPU)) + geom_point() +
annotate("text", x = as.POSIXct(c("2013-03-11 23:00:00")),
y = 90, label = "problem 1", angle=90, size=5,
colour='black', face="bold")
See Question&Answers more detail:os