heightToPeak {strvalidator} | R Documentation |
Height To Peak.
Description
Helper function to convert a peak into a plotable polygon.
Usage
heightToPeak(data, width = 1, keep.na = TRUE, debug = FALSE)
Arguments
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. |
Details
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.
Value
data.frame with new values.
[Package strvalidator version 2.4.1 Index]