文章目录
-
- 介绍
- 导入数据+R包
- AAAS: American Association for the Advancement of Science
- NEJM:The New England Journal of Medicine
- Lancet: Lancet journals
- UCSCGB: [UCSC Genome Browser](https://genome.ucsc.edu/)
- Tron Legacy
- GSEA: [GSEA GenePattern](https://software.broadinstitute.org/cancer/software/genepattern/)
- Reference
介绍
不同期刊配色大多数时候不一样,为了更好符合期刊图片颜色的配色,有人开发了ggsci这个R包。它提供以下函数:
-
scale_color_palname()
-
scale_fill_palname()
对应不同期刊的color和fill函数。
导入数据+R包
library("ggsci")
library("ggplot2")
library("gridExtra")
data("diamonds")
p1 <- ggplot(subset(diamonds, carat >= 2.2),
aes(x = table, y = price, colour = cut)) +
geom_point(alpha = 0.7) +