Description Usage Arguments Details Value See Also Examples
Color palettes from another time and place.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | sonny(n = 5, alpha = 1)
malibu(n = 5, alpha = 1)
hotpink(n = 5, alpha = 1)
youngturqs(n = 12, alpha = 1)
sunset1(n = 5, alpha = 1)
sunset2(n = 5, alpha = 1)
sunset3(n = 5, alpha = 1)
miami1(n = 5, alpha = 1)
miami2(n = 5, alpha = 1)
seventies_aint_done_yet(n = 5, alpha = 1)
cobra(n = 6, alpha = 1)
electronic_night(n = 5, alpha = 1)
|
n |
The number of colors to return. The default is the length of the palette. |
alpha |
Transparency to be used in col2hcl. |
The functions returns the hex values of various colors inspired by Sonny Crockett, Malibu, Miami, the movie Cobra, and more. Requires the scales package. Several are original from the colourlovers site via the package of the same name.
A character vector of hex values for colors. By default it will show the entire palette, otherwise the first 'n' or, it will repeat the palette to reach 'n' length.
1 2 3 4 5 6 7 8 9 10 11 | library(NineteenEightyR); library(ggplot2)
qplot(x=seq_along(sonny()), y='') +
geom_tile(fill=sonny())
qplot(x=seq_along(malibu()), y='') +
geom_tile(fill=malibu())
qplot(x=seq_along(seventies_aint_done_yet()), y='') +
geom_tile(fill=seventies_aint_done_yet())
qplot(x=seq_along(youngturqs()), y='') +
geom_tile(fill=youngturqs())
qplot(x=seq_along(cobra()), y='') +
geom_tile(fill=cobra())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.