❝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)
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有