palpal: Palette generator Discrete only

Description Usage Arguments Value Examples

View source: R/palpal.R

Description

Palette generator Discrete only

Usage

1
palpal(name, n, type = c("discrete", "continuous"))

Arguments

name

Name of palette: wong or mkweb

n

Number of colors, default all

type

Only "discrete" is enabled for the now

Value

vector of colors

Examples

1
2
3
4
5
palpal("wong")
palpal("mkweb")
## Not run: ggplot(data=mtcars, aes(x=mpg, y=disp, color=factor(cyl))) +
geom_point() + scale_color_manual(values=palpal("mkweb"))
## End(Not run)

anastasia-lucas/palpal documentation built on Feb. 12, 2020, 10:33 p.m.