coffee_cols: Return one of the ten coffee colors

Description Usage Arguments Details Value Examples

Description

Coffee House Ponders theme 1 - mocha_splatter 2 - coffee_grounds 3 - espresso_cream 4 - latte 5 - flower_sheet_light

Cappucino theme 6 - hot_milk 7 - cream 8 - cream_and_coffee 9 - beans 10 - espresso

Usage

1

Arguments

...

Columns desired, either the bare names, or the numbers associated with the colors.

Details

Part of the Rstatscoffeegeeks essentials. Return the color code associated by the name and number.

Value

The hex code of the desired color.

Examples

1
2
3
4
5
6
7
8
9
coffee_col(1)
coffee_col(mocha_splatter)
coffee_col(hot_milk, espresso)
coffee_col(1, 5, 6)
coffee_col(espresso, 4, 6)

ggplot2::ggplot(mtcars, aes(drat, mpg)) +
  geom_point(aes(col = as.factor(cyl))) +
  scale_color_manual(values = coffee_cols(beans, latte, espresso))

RMHogervorst/coffeegeeks documentation built on May 30, 2019, 3:01 p.m.