dv_int2rgb: Convert integer colour to RGB

View source: R/util.R

dv_int2rgbR Documentation

Convert integer colour to RGB

Description

DataVolley files use an integer representation of colours. These functions convert to and from hex colour strings as used in R.

Usage

dv_int2rgb(z)

dv_rgb2int(x)

Arguments

z

integer: vector of integers

x

integer: vector of hex colour strings

Value

Character vector of hex RGB colour strings

Examples

dv_int2rgb(c(255, 16711680))


raymondben/datavolley documentation built on April 25, 2024, 10:22 a.m.