scale_color_fpo: Add Estonian Government theme to ggplot chart

View source: R/colors.R

scale_color_fpoR Documentation

Add Estonian Government theme to ggplot chart

Description

This function allows you to add the Estonian Government theme to your ggplotgraphics.

Usage

scale_color_fpo(palette = "main", discrete = TRUE, reverse = FALSE, ...)

Arguments

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

Examples

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


milosh-dev/fpo documentation built on Sept. 4, 2022, 5:13 p.m.