BrattleGrays: Access the Brattle gray color palette

Description Usage Arguments Value Author(s) Examples

View source: R/BrattleGrays.R

Description

Function used to access the Brattle gray color palette

Usage

1
BrattleGrays(color)

Arguments

color

If color is NULL, the full palette; if it is the name of a gray, that gray's hexidecimal value; otherwise an error

Value

Unnamed character string of a single hexidecimal color value

Author(s)

Charlie Gibbons

Examples

1
2
3
4
5
6
### There are only two colors in the palette
BrattleGrays()

ggplot(diamonds, aes(carat, price)) + 
  geom_rect(aes(xmin = 1, xmax = 2, ymin = -Inf, ymax = Inf), fill = BrattleGrays("warm")) +
  geom_point()

Brattle/BrattleExtras documentation built on May 6, 2019, 8:47 a.m.