I created boxplot using ggplot2:
library(ggplot2) dat <- data.frame(study = c(rep('a',50),rep('b',50)), FPKM = c(rnorm(1:50),rnorm(1:50))) ggplot(dat, aes(x = study, y = FPKM)) + geom_boxplot()
The box shows the median horizontal line on each box.
How to add a dashed line to the field representing the average of this group?
Thanks!
source share