val2hex: Convert a value [0,1] into a hex code

Description Usage Arguments

View source: R/colLighten.R

Description

Convert a value [0,1] into a hex code. Useful for obtaining a transparency code based on a floating point number.

Usage

1

Arguments

x

a number or a vector of numbers to convert into hex.


tkonopka/Rpipelines documentation built on May 27, 2017, 10:35 a.m.