source("config/style.R") d <- data.frame(x=1:7,y=c(8,10,9,13,14,13,17)) p <- ggplot(d,aes(x,y)) + geom_point(size=3) + geom_smooth(method="lm",formula=y~x,se=TRUE,level=.95) export_plot(p, "GGP-09-002")