Please cite this package if you use it:
The colors used in this package were all found using publically available sources, many of them from LucasArts themselves. For example:
Other colors gleaned from various sources:
- Colors from Episodes 1-7 were gleaned from Baptiste and Anthony Caravaggi
- Colors for the "Main" list were gleaned from theforce.net
If you would like to contribute to the package, please submit a PR with documentation for color provenance.
Kartik Ram's Wes Anderson color palette inspired me to create this package and I followed his implementation for consistency.
devtools::install_github("butterflyology/spaceMovie")
library("spaceMovie")
library("ggplot2")
ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) +
theme_bw() +
geom_point(size = 3) +
scale_color_manual(values = SW_palette("Chopper")) +
labs(y = "Sepal width", x = "Sepal length") +
theme(legend.text = element_text(face = "italic"))
SW_palette("TESB")
SW_palette("Zeb")
SW_palette("Sabine", n = 3)
SW_palette("Boba", n = 21, type = "continuous")
qplot(factor(cyl), data = mtcars, geom = "bar", fill=factor(vs)) +
scale_fill_manual(values = SW_palette("Main"))
SW_colors_1 <- SW_palette("Boba", 21, type = "continuous")
image(volcano, col = SW_colors_1, las = 1)
SW_colors_2 <- SW_palette("Hera", 100, type = "continuous")
ggplot(heatmap, aes(x = X2, y = X1, fill = value)) +
geom_tile() +
scale_fill_gradientn(colours = SW_colors_2) +
scale_x_discrete(expand = c(0, 0)) +
scale_y_discrete(expand = c(0, 0)) +
coord_equal()