set_ptt: Set PTT theme and scales

View source: R/set.R

set_pttR Documentation

Set PTT theme and scales

Description

Set theme_ptt, see theme_set, and scale_colour_ptt as scale_colour_discrete and scale_fill_ptt as scale_fill_discrete

Usage

set_ptt(...)

unset_ptt()

Arguments

...

arguments passed to theme_ptt

Details

Scales are assign in ggptt_sets environment. 'unset_ptt()' is used to restore theme and scales berofe 'set_ptt()'.

Functions

  • unset_ptt(): Unset PTT theme and scales

See Also

Other set: set_gg()

Examples

l_df <- data.frame(t = c(1,2,3), y = c(4,3,5, 5,7,6), cc = c(1,1,1,2,2,2))
ggplot(l_df, aes(t, y, colour = factor(cc))) + geom_line()
set_ptt()
ggplot(l_df, aes(t, y, colour = factor(cc))) + geom_line()

pttry/ggptt documentation built on Feb. 22, 2025, 12:11 a.m.