作者:白介素2
相关阅读:
R语言生存分析03-Cox比例风险模型
R语言生存分析-02-ggforest
R语言生存分析-01
ggpubr-专为学术绘图而生(二)
ggstatsplot-专为学术绘图而生(一)
生存曲线
R语言GEO数据挖掘01-数据下载及提取表达矩阵
R语言GEO数据挖掘02-解决GEO数据中的多个探针对应一个基因
R语言GEO数据挖掘03-limma分析差异基因
R语言GEO数据挖掘04-功能富集分析
如果没有时间精力学习代码,推荐了解:零代码数据挖掘课程
如何在R中选择好看的配色-第一期
颜色是优雅的可视化中重要的元素,介绍如何创建好看的颜色板
colortools包是由Gaston Sanchez创建的一个简单易用的色板创建包
if(!require(colortools)) install.packages("colortools")
library(colortools)
wheel函数创建一个色盘
提供颜色选择,给出了相应的颜色代码
wheel("darkblue", num = 12)
## [1] "#00008B" "#46008B" "#8B008B" "#8B0046" "#8B0000" "#8B4500" "#8B8B00"
## [8] "#468B00" "#008B00" "#008B45" "#008B8B" "#00468B"
相似的颜色选取
analogous("darkblue")
## [1] "#00008B" "#46008B" "#00468B"
对比的配色方案
complementary("steelblue")
## [1] "#4682B4" "#B47846"
拆分配色方案
splitComp("steelblue")
## [1] "#4682B4" "#B4464B" "#B4AF46"
Tetradic Color Scheme
tetradic("steelblue")
## [1] "#4682B4" "#7846B4" "#B47846" "#82B446"
square("steelblue")
## [1] "#4682B4" "#AF46B4" "#B47846" "#4BB446"
sequential("steelblue")
[1] "#B4B4B4FF" "#ABB0B4FF" "#A2ACB4FF" "#99A8B4FF" "#90A4B4FF" "#87A0B4FF"
[7] "#7E9BB4FF" "#7597B4FF" "#6C93B4FF" "#638FB4FF" "#5A8BB4FF" "#5187B4FF"
[13] "#4883B4FF" "#3F7FB4FF" "#367BB4FF" "#2D77B4FF" "#2473B4FF" "#1B6EB4FF"
[19] "#126AB4FF" "#0966B4FF" "#0062B4FF"
本期内容就到这里,我是白介素2,下期再见
参考资料链接