col_of: Return 'col' values for a given categorical variable

Description Usage Arguments Value Examples

View source: R/util.r

Description

Retruns string col values for a passed categorical variable.

Usage

1
col_of(cat, pallet_name = "Dark2")

Arguments

cat

The categorical variable to return the col values for.

pallet_name

The name of the RColorBrewer pallet to get the colors from. Defaults to "Dark2"

Value

The integer col values for a passed categorical variable.

Examples

1
col_of(tourr::flea$species)

nspyrison/spinifex documentation built on Aug. 23, 2019, 1:21 p.m.