heightToPeak | R Documentation |
Helper function to convert a peak into a plotable polygon.
heightToPeak(data, width = 1, keep.na = TRUE, debug = FALSE)
data |
data frame containing at least columns 'Height' and 'Size'. |
width |
numeric specifying the width of the peak in bp. |
keep.na |
logical. TRUE to keep empty markers. |
debug |
logical. TRUE prints debug information. |
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.
data.frame with new values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.