In the past, I was able to create boxes using ggplot2, providing the lower whisker, lower quantile, median, upper quantile, and upper whisker along with the x-axis labels. For example:
DF <- data.frame(x=c("A","B"), min=c(1,2), low=c(2,3), mid=c(3,4), top=c(4,5), max=c(5,6)) ggplot(DF, aes(x=x, y=c(min,low,mid,top,max))) + geom_boxplot()
will make a block plotter for two data sets (A and B). This no longer works for me. I get the following error:
Error: Aesthetics must either be length one, or the same length as the dataProblems:x
Does anyone know if something has been changed in ggplot2?
r ggplot2 boxplot
user1399932
source share