❝https://github.com/goboru/GhibliBrewer ❞
install.packages("devtools")
devtools::install_github("goboru/GhibliBrewer")
library(tidyverse)
library(GhibliBrewer)
display.ghibli()
display.ghibli(colorblind_only = T)
ghibli.brewer(palette="Totoro-Mouth", direction="default", type="discrete", n=5)
paste(ghibli.brewer("Totoro-Mouth"))
"#3A4C51" "#9A505B" "#DDAF65" "#6EA276" "#D16D87"
❝可以看到使用非常的切合实际,没有过多的参数需要设置,非常的简洁 ❞
ggplot(diamonds, aes(x = price, y = depth, color=depth)) +
geom_point() +
scale_color_ghib_c("Mononoke-Guardian")+
theme_classic()
ggplot(diamonds, aes(x = cut, fill=cut)) +
geom_bar()+
scale_fill_ghib_d("Howl-FireDemon", n=5)