add ratio density plots with maxima detection