Skip to contents

Takes an absorbance and converts it to a hexidecimal color. For the default qp_pal palette, this should provide a color that approximates real life color at the given absorbance.

Usage

abs_to_col(abs, pal)

Arguments

abs

Numeric. Absorbances.

pal

Character. A vector of hexidecimal colors.

Value

Character. Hexidecimal colors corresponding to absorbances.

Details

The absorbances have typical baseline absorbance (~ 0.07) removed, and then an index is calculated with a logistic curve of maximum 100 and a center of 0.15.