source("config/style.R")
d <- data.frame(batch=rep(c("A","B","C"),each=2),
                status=rep(c("Accepted","Held"),3),n=c(8,2,14,3,11,1))
p <- ggplot(d,aes(batch,n,fill=status)) + geom_col(position="fill") +
  scale_y_continuous(labels=function(x) paste0(100*x,"%")) +
  labs(y="Within-batch share")
export_plot(p, "GGP-06-005")
