scale_vapeplot: Vaporwave-aligned color maps

Description Usage Arguments Examples

Description

The vapeplot scales provide continuous and discrete color schemes found in the Python package vapeplot.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
scale_color_vapeplot_c(option = "vaporwave", alpha = 1, reverse = FALSE,
  ...)

scale_color_vapeplot_d(option = "vaporwave", alpha = 1, reverse = TRUE,
  ...)

scale_colour_vapeplot_c(option = "vaporwave", alpha = 1, reverse = FALSE,
  ...)

scale_colour_vapeplot_d(option = "vaporwave", alpha = 1, reverse = TRUE,
  ...)

scale_fill_vapeplot_c(option = "vaporwave", alpha = 1, reverse = FALSE,
  ...)

scale_fill_vapeplot_d(option = "vaporwave", alpha = 1, reverse = TRUE,
  ...)

Arguments

option

Choose from "vaporwave" (default), "cool", "crystal_pepsi", "mallsoft", "jazzcup", "sunset", "macplus", or "seapunk".

alpha

The alpha transparency, a number in [0,1]

reverse

If TRUE, the direction of the colours is reversed.

...

additional arguments to pass to scale_color_gradientn or discrete_scale.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(ggplot2)
library(vapeplot)

ggplot(diamonds) +
 geom_point(aes(x = carat, y = price, color = cut)) +
 scale_color_vapeplot_d("mallsoft")

ggplot(diamonds) +
  geom_bar(aes(x = cut, fill = clarity)) +
  scale_fill_vapeplot_d("seapunk")

seasmith/vapeplot documentation built on May 21, 2019, 10:08 a.m.