col2hex: Colours to Hex Format

Description Usage Arguments Value Examples

View source: R/playingWithColours.R

Description

Convert a vector of colours in any form to hex

Usage

1
col2hex(colours, names_ = nam)

Arguments

colours

The character string vector of colours

names_

The names to be given to the components of the result

Value

A character string vector of the colours in hex format

Examples

1
col2hex(colors()[5:15])

BillVenables/WWRGraphics documentation built on Feb. 1, 2021, 12:13 p.m.