Skip to contents

Makes theme_mariner() the global ggplot2 theme and the brand palettes the default discrete and continuous scales. Later plots need no scale call.

Usage

mariner_set_theme(theme = mariner_themes, format = mariner_formats, ...)

Arguments

theme

Theme name. Defaults to the built-in mariner theme.

format

One of mariner_formats.

...

Further arguments for theme_mariner().

Value

Invisibly, the previous theme.

Examples

# This changes global ggplot2 state. The return value puts it back.
old <- mariner_set_theme()
ggplot2::theme_set(old)