scale_color_fpo | R Documentation |
This function allows you to add the Estonian Government theme to your ggplotgraphics.
scale_color_fpo(palette = "main", discrete = TRUE, reverse = FALSE, ...)
palette |
Character name of palette in fpo_palettes |
discrete |
Boolean indicating whether color aesthetic is discrete or not |
reverse |
Boolean indicating whether the palette should be reversed |
... |
Additional arguments passed to discrete_scale() or scale_color_gradientn(), used respectively when discrete is TRUE or FALSE |
line <- ggplot(line_df, aes(x = year, y = lifeExp)) + geom_line(colour = "#007f7f", size = 1) + geom_hline(yintercept = 0, size = 1, colour="#333333") + theme_fpo() + scale_color_fpo() Color scale constructor for drsimonj colors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.