DistinctColors: Distinct Colors

View source: R/basic_functions.R

DistinctColorsR Documentation

Distinct Colors

Description

create vector containing Hex color codes

Usage

DistinctColors(range, random = FALSE)

Arguments

range

number of colors as sequence

random

logical, indicating whether or not to provide random colors, Default: FALSE

Examples

 DistinctColors(1:3)
 # [1] "#FFFF00" "#1CE6FF" "#FF34FF"
 set.seed(1)
 DistinctColors(1:3, TRUE)
 # [1] "#575329" "#CB7E98" "#D86A78"

bfw documentation built on March 18, 2022, 6:19 p.m.