my_cols: Colors from famous academic journals

Description Usage Arguments Examples

Description

This function provides useful color sets of famous academic journals, including NEJM, JAMA, and Nature.

Usage

1

Arguments

...

the name of color, such as "jama_1", "nejm_2".

Examples

1
2
3
4
5
6
require(ggplot2)
data(diamonds)
set.seed(42)
small <- diamonds[sample(nrow(diamonds), 1000), ]
ggplot(data = small) +
 geom_point(mapping = aes(x = carat, y = price), col=my_cols("jama_2"))

xiaojunlin/myfunc documentation built on May 23, 2019, 9:51 a.m.