Using stat_summary to customize violin plots

Think about some summarized information you want to display inside your violin. Maybe you want to show the median along with the interval given by plus and minus one standard deviation. Or maybe you want just the median to be displayed. That is possible and not difficult.

You can either create new a function that summarizes the information to be displayed into your violins or use an already existing function. This recipe teaches how that can be done and also how to draw quantiles inside your violins.