Awesome
vapeplot
An R extension of the Python package vapeplot
's color palettes.
Available Palettes
show_palette()
Examples
ggplot(diamonds) +
geom_point(aes(x = carat, y = price, color = cut), alpha = 0.7) +
scale_color_vapeplot_d("mallsoft") +
theme_classic()
ggplot(diamonds) +
geom_bar(aes(x = cut, fill = clarity)) +
scale_fill_vapeplot_d("seapunk") +
theme_classic()
df <- data.frame(x = rnorm(500),
y = rgamma(500, shape = 5, rate = 0.1))
ggplot(df) +
geom_point(aes(x, y, color = y)) +
scale_color_vapeplot_c() +
theme_classic()
Acknowledgements
Design of this package drew on inspiration from ggplot2::scale_*_viridis_c()
and ggplot2::scale_*_viridis_d()
, and the nordic
package.