I would like to create a box or violin plot from 2D numerical data much like the one given in Figure 1A and 1B here (Goodman, et al., Science, 2003) and given below:
Is there an intuitive way to do this in ggplot2 given the x-y data?
Essentially, I think I need to first bin on x-data and then summarize the y data for plotting, but I don't have a good idea of how I might leverage ggplot functions to do this.