I have data frame and I want to plot grouped boxplots. Here is part of the data.
a <- c(0, 100, 250, 500, 750, 0, 100, 250, 500, 750, 0, 100, 250, 500, 750)
b <- c(2.646, 3.756, 26.270, 30.997, 39.294, 2.646, 3.756, 26.270, 30.997, 39.294, 16.363, 25.950, 38.913,45.000, 47.698)
c <- c(0.0, 0.5, 0.1, 5.8, 21.9, 0.0, 0.5, 0.1, 5.8, 21.9, 9.7. 12.5, 25.1, 29.3, 31.9)
d <- c(14.7, 15.0, 13.8, 18.4, 28.2, 14.7, 15.0, 13.8, 18.4, 28.2, 23.6, 24.0, 25.7, 29.0, 33.1)
I merged the vectors to get a data frame as follows.
data <- cbind(a, b, c, d)
Then I tried to get boxplot for the three values of b, c and d as a funtion of a as follows.
boxplot(b~a, c~a, d~a, data = data)
but I couldn't get the desired grouped boxplot which is three boxplots for each value of "a". But I can get a boxplot for each value of "a" if I do:
boxplot(b~a, data = data)
What is wrong with my grouped boxplot?

