powered by
col
Retruns string col values for a passed categorical variable.
col_of(cat, pallet_name = "Dark2")
The categorical variable to return the col values for.
The name of the RColorBrewer pallet to get the colors from. Defaults to "Dark2"
RColorBrewer
The integer col values for a passed categorical variable.
# NOT RUN { col_of(tourr::flea$species) # }
Run the code above in your browser using DataLab