graph_colors: Return a list of n colors by the "best" color generator...

View source: R/graph.r

graph_colorsR Documentation

Return a list of n colors by the "best" color generator available

Description

Try to use RColorBrewer if available, if not uses rainbow

Usage

graph_colors(n, pal = NULL, dark = FALSE)

Arguments

n

number of colors to get (caution, it can be fewer than expected for some palettes)

pal

name of the palette to use

dark

boolean try to use darkest palette


cturbelin/ifnBase documentation built on Aug. 26, 2024, 12:54 p.m.