ggptt_pal: Color palettes in ggptt package.

View source: R/palettes.R

ggptt_palR Documentation

Color palettes in ggptt package.

Description

Color palettes in ggptt package (discrete).

Usage

ggptt_pal(n = NULL, name, last_grey = FALSE)

Arguments

n

A number of colour needed. NULL (default) return all available.

name

A name of the palette. See names(ggptt_palettes).

Details

Colors in palerres are recycled if needed (with warning).

Available palettes are: ptt, vnk.

See Also

Other ggptt_pal: aw_pal(), ptt_pal(), vnk_pal()

Examples

 scales::show_col(ggptt_pal(n = 6, name = "ptt"))
 scales::show_col(ggptt_pal(n = 6, name = "vnk"))
 scales::show_col(ggptt_pal(n = 6, name = "ptt", last_grey = TRUE))

pttry/ggptt documentation built on May 4, 2023, 2:48 p.m.