set_ptt | R Documentation |
Set theme_ptt
, see theme_set
, and
scale_colour_ptt
as scale_colour_discrete
and
scale_fill_ptt
as scale_fill_discrete
set_ptt(...)
unset_ptt()
... |
arguments passed to |
Scales are assign in ggptt_sets
environment.
'unset_ptt()' is used to restore theme and scales berofe
'set_ptt()'.
unset_ptt()
: Unset PTT theme and scales
Other set:
set_gg()
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.