source("config/style.R") d <- data.frame(x=1:7,y=c(8,10,9,13,14,13,17)) r <- cor(d$x,d$y) p <- ggplot(d,aes(x,y)) + geom_point(size=3) + labs(subtitle=sprintf("Pearson r = %.2f",r), caption="Descriptive association in synthetic observations") export_plot(p, "GGP-09-004")