maddog: Maddog color palettes

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/maddog.R

Description

Returns a color palette based on flavors of MD 20_20.

Usage

1

Arguments

name

name of a color palette

n

number of colors (variables)

Details

Returns a color palette based on flavors of MD 20_20

Value

maddog returns a list of colors based on the chosen palette and number of variables. Palette options include "north", "south", "east", "west", and "rainbow".

Author(s)

Simon Tye

References

http://www.ghettowine.com/maddog/

See Also

maddog_palettes

Examples

1
2
3
4
5
6
7
8
9
## Plot maddog palette
#ggplot() +
#  geom_point(data = iris, mapping = aes(x = Species, y = Sepal.Length, color = Species)) +
#  scale_color_manual(values = maddog("north", 3))
#  
## Plot maddog flavors
#ggplot() +
#  geom_point(data = iris, mapping = aes(x = Species, y = Sepal.Length, color = Species)) +
#  scale_color_manual(values = c(peachesandcream, purplerain, sourapple))

simontye/maddog documentation built on March 12, 2021, 4:16 a.m.