Skip to content

An R extension of the Python package 'vapeplot'

Notifications You must be signed in to change notification settings

seasmith/vapeplot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vapeplot

Build Status

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.

About

An R extension of the Python package 'vapeplot'

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages