knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "figure/", fig.height = 1 )
devtools::install_github("nowosad/filmcolors")
library('filmcolors') # See all palettes names(film_palettes)
library('knitr') knitr::include_graphics('figure/Vertigo.png')
film_colors("Vertigo")
library('ggplot2') ggplot(mtcars, aes(mpg, hp, color=as.factor(carb))) + geom_point(size=8) + scale_color_manual(values = film_colors("Vertigo"))
sort_colors
functioncolors <- c("#060306", "#290705", "#131325") class(colors) <- 'palette' colors sorted_colors <- sort_colors(colors) sorted_colors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.