library(joycon)
library(ggplot2)
ggplot(mtcars, aes(x = mpg)) +
  geom_density(aes(fill = factor(gear)), alpha = 0.8) +
  scale_fill_manual(values = joycon_pal("Splatoon")) +
  ggtitle(("Splatoon palette"))
ggplot(diamonds, aes(x = cut, fill = cut)) + 
  geom_bar(stat = "count") +
  scale_fill_manual(values = joycon_pal(name = "SkywardSword")) +
  ggtitle("Skyward Sword palette")
ggplot(diamonds, aes(x = cut, y = price, fill = cut)) + 
  geom_boxplot() + 
  scale_y_log10() + 
  scale_fill_manual(values = joycon_pal("Isabelle")) +
  ggtitle("Isabelle palette")
ggplot(airquality, aes(x = Month, y = Temp, fill = as.factor(Month))) +
  geom_bar(stat = "identity") + 
  scale_fill_manual(values = joycon_pal("Earthbound")) +
  ggtitle("Earthbound palette")
ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width))+
  geom_point(aes(color = Sepal.Length), size=5) + 
  scale_color_gradientn(colors = joycon_pal("AceAttorney", type = "continuous")) +
  ggtitle("Ace Attorney palette") +
  labs(caption = "(Yes, I know Ace Attorney is developed by Capcom)")


jrcalabrese/joycon documentation built on March 19, 2022, 10:44 p.m.