normalize.proportion | R Documentation |
For a given variable, normalize the data values in an electrophoresis
object to proportions of the total. After normalization the sum of the variable for each sample is 1.
normalize.proportion(electrophoresis, variable, lower.marker.spread = 5)
electrophoresis |
An |
variable |
The name of a variable in |
lower.marker.spread |
Proportion to scale the width of the lower marker peak (passed to |
Only data points between the markers are considered in the total. If there is no upper marker, all data points above the lower marker are considered.
A vector whose length equals nrow(electrophoresis$data)
, in which each value is an observation of the given variable normalized by the total for that sample, or NA if the observation is not between the markers.
differential.scale
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.