I am just using this built-in dataset to explain what I would like to do, as my data is is essentially the same. The standard boxplot using bwplot
obviously plots the 25th and 75th precentiles as the top and bottom of the boxes as standard.
Is there a way for me to alter the boxplot so that the top and bottom of the boxes are instead the 85th and 15th percentiles of each factor? If this is not possible - is there a way to represent them as lines above each factor respectively?
library(MASS)
data <- ChickWeight[,c("Diet", "weight")]
bwplot(data$weight~data$Diet)
I would additionally like to be able to plot a static range as a background of the plot (for example a shaded area between 150 and 250) - how can I do this?
Apologies in advance, as I am fairly new to R. Really appreciate any help for this simple task, I'm finding a lot of the R documentation a bit hard to follow.