Learn R Programming

profiplots (version 0.2.3)

profinit_cols: Profinit colors

Description

This function provides an access to standardized Profinit colors hex codes.

Usage

profinit_cols(..., named = FALSE)

Value

Named character vector the same length as input params.

Arguments

...

Either character name(s) or order of Profinit colors. Leave empty for the full color set.

named

Flag whether to produce named vector of profinit colours. Defautls to FALSE.

Examples

Run this code
# to get Profinit red hexcode
profinit_cols("red")

# to get Profinit red and gray hexcodes
profinit_cols("red", "grey")

# to get the first Profinit color
profinit_cols(1)

# to get all Profinit colors
profinit_cols()
scales::show_col(profinit_cols())

Run the code above in your browser using DataLab