Below is a code for producing a boxplot using ggplot2 I\'m trying to modify in order to suit my problem:
library(ggplot2) set.seed(1) # create fictitious dat
ggplot(mydata.mine, aes(x = as.factor(group))) + geom_boxplot(aes( lower = mean - sd, upper = mean + sd, middle = mean, ymin = mean - 3*sd, ymax = mean + 3*sd), stat = "identity")