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",

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to