source("config/style.R") d <- data.frame(day=1:5, temperature=c(12,14,13,16,15)) p <- ggplot(d,aes(day,temperature)) + geom_point(size=3) + annotate("segment",x=3,y=17,xend=3.9,yend=16.1, arrow=grid::arrow(length=grid::unit(3,"mm"))) + annotate("text",x=3,y=17.7,label="Inspection") + scale_y_continuous(expand=expansion(mult=c(.05,.2))) export_plot(p, "GGP-14-005")