Your are so close ... you just need to specify that you want your histograms to show density, not percent. I've only edited one line of your script, the rest is good and plots nicely: histogram(~ resp | group, col="steelblue",type="density",