Learn R Programming

spinifex (version 0.1.0)

col_of: Return col values for a given categorical variable

Description

Retruns string col values for a passed categorical variable.

Usage

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

Run this code
# NOT RUN {
col_of(tourr::flea$species)
# }

Run the code above in your browser using DataLab