Description Usage Arguments Examples
The vapeplot
scales provide continuous and discrete color schemes
found in the Python package
vapeplot.
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,
...)
|
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 |
... |
additional arguments to pass to |
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.