Nothing
knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "figure/", fig.height = 1 )
The vangogh package (for use in R) consist of color scales extracted by Cheryl Isabella from a selection of Vincent van Gogh's paintings.
install.packages("vangogh")
Or the development version
devtools::install_github("cherylisabella/vangogh")
library("vangogh") # See all palettes names(vangogh_palettes) # See all functions lsf.str("package:vangogh")
vangogh_palette("StarryNight")
vangogh_palette("StarryRhone")
vangogh_palette("SelfPortrait")
vangogh_palette("CafeTerrace")
vangogh_palette("Eglise")
vangogh_palette("Irises")
vangogh_palette("SunflowersMunich")
vangogh_palette("SunflowersLondon")
vangogh_palette("Rest")
vangogh_palette("Bedroom")
vangogh_palette("CafeDeNuit")
vangogh_palette("Chaise")
vangogh_palette("Shoes")
vangogh_palette("Landscape")
vangogh_palette("Cypresses")
library("ggplot2") ggplot(mtcars, aes(factor(cyl), fill=factor(vs))) + geom_bar() + scale_fill_manual(values = vangogh_palette("SelfPortrait")) ggplot(mtcars, aes(mpg, disp)) + geom_point(aes(col = factor(gear)), size = 4) + scale_color_manual(values = vangogh_palette("Cypresses")) ggplot(iris) + aes(Sepal.Length, Sepal.Width, color = Species) + geom_point(size = 3) + scale_color_manual(values = vangogh_palette("CafeDeNuit"))
Discrete palettes pick 1:n colors from the palette vector (n=5 for this package as 5 colors were curated for each palette)
Default color selection starts from colors at the extreme left and ends at the extreme right of the color palette.
x <- vangogh_palette("Chaise", 1000, "continuous") x
colorRampPalette()
is used to a set of colors to create a new continuous palette.oldpar <- par(mar = c(1, 1, 1, 1)) par(mar = c(1, 1, 1, 1)) pal <- vangogh_palette("SunflowersLondon", 21, type = "continuous") image(volcano, col = pal) par(oldpar)
ggplot(faithfuld) + aes(waiting, eruptions, fill = density) + geom_tile() + scale_color_manual(values = vangogh_palette("CafeTerrace"))
ggplot(data = mpg) + geom_point(mapping = aes(x = displ, y = hwy, color = class)) + scale_colour_vangogh(palette="StarryRhone") ggplot(diamonds) + geom_bar(aes(x = cut, fill = clarity)) + scale_fill_vangogh(palette = "StarryNight")
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.