I think La La Land’s use of color is breathtakingly beautiful, so I made an R package of palettes based on stills from the film. I used a combination of online image color pickers and Susie Lu’s Viz Palette to build them.
Poking around the wesanderson
package really, really helped me!
"It's conflict and it's compromise, and ... it's very, very exciting!" - Sebastian on jazz, but also me making these palettes
devtools::install_github("simranvatsa/lalaland")
library(lalaland)
show_lll_palette(name, n)
: prints the selected palette/subsection of
palette as an image
lll_palette(name, n)
: generates a vector containing hex codes for
the selected palette/subsection of palette
show_lll_palette("California")
show_lll_palette("CityOfStars1")
show_lll_palette("CityOfStars2")
show_lll_palette("Epilogue1")
show_lll_palette("Epilogue2")
show_lll_palette("LighthouseCafe")
show_lll_palette("LovelyNight")
show_lll_palette("Sebs")
show_lll_palette("Summer")
show_lll_palette("Traffic")
library(ggplot2)
ggplot(iris, aes(x = Sepal.Length, y = Petal.Length, color = Species)) +
geom_point() +
scale_color_manual(values = lll_palette("CityOfStars1", c(2,3,4))) +
theme_minimal() +
labs(title = "Sepal and petal lengths for the iris dataset, colored by species")
ggplot(diamonds[diamonds$carat < 3, ], aes(x = carat, fill = cut)) +
geom_histogram(bins = 20) +
scale_fill_manual(values = lll_palette("Sebs")) +
theme_minimal() +
labs(title = "Distribution of carat values of diamonds")
ggplot(mpg, aes(x = class, fill = as.factor(cyl))) +
geom_bar() +
scale_fill_manual(values = lll_palette("LighthouseCafe", c(1,3,2,4))) +
theme_minimal()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.