ggsci配色

1. RColorBrewer palette


使用RColorBrewer包配色
安装并加载RColorBrewer包
install.packages("RColorBrewer")
library(RColorBrewer)
display.brewer.all()

2.colorspace

install.packages("colorspace")
library(colorspace)
hcl_palettes(plot = TRUE)

3. palette 1 (主要作为自带色谱的补充)

mycol <- c("#BD6263","#8EA325","#A9D179","#84CAC0","#F5AE6B","#BCB8D3","#4387B5")

mycol2 = c( "#E64B35B2", "#4DBBD5B2" ,"#00A087B2", "#3C5488B2", "#F39B7FB2",
"#8491B4B2", "#91D1C2B2", "#DC0000B2", "#7E6148B2")

4.The palette with grey or black:

cbPalette <- c("#999999", "#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2",
"#D55E00", "#CC79A7")

cbbPalette <- c("#000000", "#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2",
"#D55E00", "#CC79A7")

5. 8 colors

color_8 <- c("#2873B3","#2EBEBE","#74B346","#167153","#F1CC2F","#7D4444","#A14462","#8264CC")

6. Colors more than 12

21 colors
mycol21 <- c("#004529","#088247","#7CC767",
"#223D6C","#5D90BA","#9ecae1",
"#8c510a","#bf812d","#D8D155",
"#b30000","#d73027","#fc9272",
"#7A142C","#E0367A","#df65b0",
"#4a1486","#6a51a3","#9e9ac8",
"#252525","#737373","#bdbdbd")

22 colors
mycol22 <- c("#35212e","#562e3c","#a14462","#eb998b",
"#fddbc8","#42465c","#356d67","#4c9568",
"#7fb961","#b0d45d","#ffe788","#b20000",
"#f06152","#7d4444","#9e6c69","#cca69c",
"#5066a1","#76afda","#abddff","#dcf2ff",
"#e8743c","#ffc556")

22 color edited
mycol22 <- c("#b0d45d","#7fb961","#4c9568","#356d67","#42465c","#5066a1",
"#76afda","#abddff","#dcf2ff","#fddbc8","#ffe788","#ffc556",
"#e8743c","#f06152","#b20000","#eb998b","#a14462","#cca69c",
"#9e6c69","#7d4444","#562e3c","#35212e")

A Wes Anderson style

# Install

install.packages("wesanderson")

# Load

library(wesanderson)

7.a series of palettes from pophelperShiny 2.1.1(https://www.royfrancis.com/pophelperShiny/articles/index.html

1. palette set 1

2. palette set 2

3. palette set 3

8.最全颜色 (2128 palettes)

一步搞定各种配色,选paletteer 包就对了。
GitHub - EmilHvitfeldt/paletteer: 🎨🎨🎨 Collection of most color palettes in a single R package

GitHub - EmilHvitfeldt/paletteer: 🎨🎨🎨 Collection of most color palettes in a single R package

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值