This was exactly the problem. It has worked a treat this time around. Thank you so much! -- View this message in context: http://www.nabble.com/Error-producing-density-curve-tp19173403p19176280.html Sent from the R help mailing list archive at Nabble.com.