vangogh::viz_palette(“StarryNight”)
pal_orig <- vangogh::safe_vangogh_palette(“StarryNight”) pal_orig
pal_discrete <- vangogh::safe_vangogh_palette(“SunflowersMunich”, type = “discrete”) pal_discrete
pal_cont <- vangogh::safe_vangogh_palette(“CafeTerrace”, type = “continuous”, n = 12) vangogh::viz_palette(“CafeTerrace”, type = “continuous”, n = 12)
ggplot2::ggplot(mtcars, ggplot2::aes(mpg, wt, color = factor(cyl))) + ggplot2::geom_point(size = 3) + vangogh::scale_color_vangogh(“StarryNight”) + vangogh::theme_vangogh(base_size = 14) + ggplot2::labs(title = “Discrete Van Gogh Color Scale Example”)
ggplot2::ggplot(mtcars, ggplot2::aes(mpg, wt, color = hp)) + ggplot2::geom_point(size = 3) + vangogh::scale_color_vangogh(“Cypresses”, discrete = FALSE) + vangogh::theme_vangogh() + ggplot2::labs(title = “Continuous Van Gogh Color Scale Example”)
ggplot2::ggplot(diamonds, ggplot2::aes(cut, fill = clarity)) + ggplot2::geom_bar() + vangogh::scale_fill_vangogh(“CafeDeNuit”) + vangogh::theme_vangogh() + ggplot2::labs(title = “Discrete Fill Example”)
ggplot2::ggplot(diamonds, ggplot2::aes(carat, price, fill = price)) + ggplot2::geom_tile() + vangogh::scale_fill_vangogh(“StarryRhone”, discrete = FALSE) + vangogh::theme_vangogh() + ggplot2::labs(title = “Continuous Fill Example”)
all_palettes <- vangogh::vangogh_colors() head(all_palettes)
names(vangogh::vangogh_palettes)
vangogh::vangogh_palette_info()