scale_fill_ptt: PTT colour and fill scale

View source: R/scales_ptt.R

scale_fill_pttR Documentation

PTT colour and fill scale

Description

Discrete PTT colour scale. Colours from ptt_pal.

Usage

scale_fill_ptt(...)

scale_colour_ptt(...)

scale_color_ptt(...)

scale_colour_ptt_lg(...)

scale_color_ptt_lg(...)

Arguments

...

Other arguments passed on to discrete_scale.

Examples

 dsamp <- diamonds[sample(nrow(diamonds), 1000), ]
 (d <- ggplot(dsamp, aes(carat, price, colour = clarity)) + geom_point())

 d + scale_colour_ptt()

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