quik_theme: Add Red Hat theming to a ggplot

Description Usage Arguments

View source: R/plot_themes.R

Description

After creating your own ggplot, or using quik_bars or quik_lines, or quik_bullets, quik_theme will help your plot match CEE Analytics standards. By default, quik_theme will clean the grid and axes, clean and move the legend to the bottom, and make all white elements transparent for universal use. clean_facet can be set to TRUE to clean ugly facet titles.

Usage

1
2
quik_theme(gg, clean_grid, clean_axis, clean_facet,
                      legend, transparent, ...)

Arguments

gg

The ggplot to be themed

clean_grid

A logical. Should the plot grid be cleaned?

clean_axis

A logical. Should the plot axes be cleaned?

clean_facet

A logical. Should the facet titles be cleaned?

legend

A string. One of three options: "bottom", "right", or "none". Default is "bottom".

transparent

A logical. Should the plot be transparent for saving?

...

Parameters to pass on to quik_clean_axis such as axis.title and axis.text, or to quik_clean_grid such as grid.lines.


brascoball/ggquik documentation built on Feb. 14, 2021, 5:17 p.m.