set_gg | R Documentation |
Set theme, see theme_set
and set scales
scale_colour_ptt
and
scale_fill_ptt
to use palette.
set_gg(theme, palette)
unset_gg()
theme |
a ggplot2 theme |
palette |
a palette funtion or a name of the ggptt intern palette.
See |
Scales are assign in ggptt_sets
environment.
'unset_gg()' is used to restore theme and scales berofe
'set_gg()'.
unset_gg
: Unset theme and scales
Other set:
set_ptt()
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))
p <- ggplot(l_df, aes(t, y, colour = factor(cc))) + geom_line()
p
set_gg(theme_ptt(), "ptt")
p
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.