Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

论文配色 | 跟着顶刊学配色(Cell篇) #5206

Closed
ixxmu opened this issue Jul 8, 2024 · 1 comment
Closed

论文配色 | 跟着顶刊学配色(Cell篇) #5206

ixxmu opened this issue Jul 8, 2024 · 1 comment

Comments

@ixxmu
Copy link
Owner

ixxmu commented Jul 8, 2024

https://mp.weixin.qq.com/s/ivyIWRLG760sGbjYICvs5A

@ixxmu
Copy link
Owner Author

ixxmu commented Jul 8, 2024

论文配色 | 跟着顶刊学配色(Cell篇) by 被炸熟的虾


Cell同款 | 配色



为啥都选了单细胞的亚群注释,因为颜色多,考验作者审美,这里边随便挑几个颜色就能画其他各类型的图啦!

这些文献里的配色我都是用顶刊文献千千万,Figure配色随便拾里方法提取的颜色,真得很好使!


1.1

Figure



1.2

来源文献


Andersen J, Revah O, Miura Y, Thom N, Amin ND, Kelley KW, Singh M, Chen X, Thete MV, Walczak EM, Vogel H, Fan HC, Paşca SP. Generation of Functional Human 3D Cortico-Motor Assembloids. Cell. 2020 Dec 23;183(7):1913-1929.e26. doi: 10.1016/j.cell.2020.11.017. Epub 2020 Dec 16. PMID: 33333020; PMCID: PMC8711252.


1.3

配色方案


colorlist <- c("#ea5c6f","#f7905a","#e187cb","#fb948d","#e2b159","#ebed6f","#b2db87","#7ee7bb","#64cccf","#a9dce6","#a48cbe","#e4b7d6")


接下来用脚本展示给大家看,画了个散点图,可以换colorlist里的元素即可!!!

library(ggplot2)
colorlist <- c("#ea5c6f","#f7905a","#e187cb","#fb948d","#e2b159","#ebed6f","#b2db87","#7ee7bb","#64cccf","#a9dce6","#a48cbe","#e4b7d6")
df <- data.frame(x=seq(1, length(colorlist)),y=0)
#可以用下边命令简单画个散点图看下配色#plot(1:length(colorlist),col=colorlist, pch=19)
#当然也可以用我们常用ggplot画个散点图展示df <- data.frame(x=seq(1, length(colorlist)),y=0)
ggplot(df, aes(x=x, y=y)) + geom_point(aes(color=factor(x)), size=8)+ #geom_point绘制散点图 scale_colour_manual(values = colorlist) + #scale_colour_manual自定义配色 把我们的颜色传进去看看 theme_void() + #背景是全白 啥也没 theme(legend.position="none") #图例也不展示

结果如下所示


2.1

Figure



2.2

来源文献


Tang F, Li J, Qi L, Liu D, Bo Y, Qin S, Miao Y, Yu K, Hou W, Li J, Peng J, Tian Z, Zhu L, Peng H, Wang D, Zhang Z. A pan-cancer single-cell panorama of human natural killer cells. Cell. 2023 Sep 14;186(19):4235-4251.e20. doi: 10.1016/j.cell.2023.07.034. Epub 2023 Aug 21. PMID: 37607536.


2.3

配色方案


左上方图

colorlist <- c("#89c8e8","#caa2f4","#1f78b4","#6a3d9a","#8acc72")

右上方图

colorlist <- c("#ebd57c","#e18748","#ed4437","#fe9e37","#b24646","#96873b","#b49d99","#b37557","#fc9a9a")

下方小提琴图

colorlist <- c("#f29600","#4974a4","#b81316")



3.1

Figure



3.2

来源文献


Mathys H, Peng Z, Boix CA, Victor MB, Leary N, Babu S, Abdelhady G, Jiang X, Ng AP, Ghafari K, Kunisky AK, Mantero J, Galani K, Lohia VN, Fortier GE, Lotfi Y, Ivey J, Brown HP, Patel PR, Chakraborty N, Beaudway JI, Imhoff EJ, Keeler CF, McChesney MM, Patel HH, Patel SP, Thai MT, Bennett DA, Kellis M, Tsai LH. Single-cell atlas reveals correlates of high cognitive function, dementia, and resilience to Alzheimer's disease pathology. Cell. 2023 Sep 28;186(20):4365-4385.e27. doi: 10.1016/j.cell.2023.08.039. PMID: 37774677; PMCID: PMC10601493.


3.3

配色方案


colorlist <- c("#a4cde1","#67a4cc","#277fb8","#549da3","#96cb8f","#8bc96d","#4dae47","#5c9e43","#b79973","#f38989","#ec5051","#e32427","#ef6a45","#f9b769","#f9a341","#f48521","#ee8e46","#d4a6a8","#af93c4","#8660a8","#815e99","#c6b598","#f6f28f","#d4a55b","#b05a28")



扫码关注

若能脱颖而出

何必苦苦融入


END

@ixxmu ixxmu changed the title archive_request 论文配色 | 跟着顶刊学配色(Cell篇) Jul 8, 2024
@ixxmu ixxmu closed this as completed Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant