source("config/style.R")
d <- data.frame(batch=c("A","B","C"),reading=c(8,14,11),weight=c(1,3,2))
m <- weighted.mean(d$reading,d$weight)
p <- ggplot(d,aes(batch,reading)) + geom_point(size=3) +
  geom_hline(yintercept=m,linetype="dashed") +
  labs(caption="Dashed line: mean weighted by record multiplicity")
export_plot(p, "GGP-08-004")
