dot-pal_base: Base function for color palette functions

Description Usage Arguments Details Value

Description

Wraps together the common parts for palette functions. Different palettes are defined by the data frame argument.

Usage

1
.pal_base(namels, colors_df, with_names)

Arguments

namels

list of quoted names (in 'name_engl') of colors to return

colors_df

a data frame with cols 'name_engl' and 'hexcode'

with_names

logical. Should color vector be returned with names?

Details

'namels' is meant to be produced by '...' in actual palette functions.

Value

A character vector of hex colors, named depending on 'with_names'


webbidevaajat/wspviz documentation built on Nov. 5, 2019, 12:07 p.m.