colorise: assign colours to distinct values of a vector

View source: R/auxiliary.R

coloriseR Documentation

assign colours to distinct values of a vector

Description

assign colours to distinct values of a vector

Usage

colorise(v)

Arguments

v

vector to be converted to colours

Value

a vector of colours of equal length with two attributes: 'palette' giving the palette used for all distinct colours; 'uniq': vector of distinct values in v


wangtengyao/putils documentation built on Nov. 26, 2024, 2:01 a.m.