get_ercot_palette: get_ercot_palette

Description Usage Arguments Details Value

View source: R/colors.R

Description

Used to change the "luminance" of colors for 'get_ercot_palette_scaled()', (athough it really is a general function that can be used for other purposes as well).

Provides greater customability than 'get_ercot_palette()'.

Used for 'ercot_pal()'.

Usage

1
2
3
4
5
6
scale_color(r, g, b, max = 255, scale = 1)

get_ercot_palette_scaled(num_colors = 12, max = 255, scale = 1,
  with_contrast = TRUE)

get_ercot_palette(num_colors = 12, with_contrast = TRUE)

Arguments

r

red number, Max: 255

g

green number Max: 255

b

blue number Max: 255

max

max number, Default: 255

scale

number between 0 and 1, Default: 1

num_colors

number between 0 and 12 Default: 12

with_contrast

boolean, Default: TRUE (TRUE provides maroon as secondary color, FALSE provides grey as secondary color)

Details

See 'get_ercot_palette()' and 'get_ercot_palette_scaled()'.

See 'get_ercot_palette()'.

Value

A character vector with colors.


aelhabr/ercotr documentation built on May 29, 2019, 2:49 p.m.