Internal helper function to convert a peak into a plottable polygon.
heightToPeak(data, width = 1, keep.na = TRUE, debug = FALSE)
data frame containing at least columns 'Height' and 'Size'.
numeric specifying the width of the peak in bp.
logical, TRUE keep empty markers.
data.frame with new values.
Converts a single height and size value to a plottable 0-height-0 triangle/peak value. Makes 3 data points from each peak size for plotting a polygon representing a peak. Factors in other columns might get converted to factor level.