Helper function to convert a peak into a plotable 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 to keep empty markers.
logical. TRUE prints debug information.
data.frame with new values.
Converts a single height and size value to a plotable 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.