Proper thresholding in plot2