Skip to contents

A ggplot2 theme for submission figures: white background with a thin black panel border, major gridlines only, black text, legend at the bottom, and no in-body title or subtitle. The title block is set in the RTF text layer by tlf_rtf_figure(), so it stays machine-auditable.

Usage

theme_tlf_submission(base_size = NULL, base_family = NULL, config = NULL)

Arguments

base_size

Font size in points. NULL uses the configured figure_size. Sizes outside the configured figure_size_range are an error.

base_family

Font family. NULL uses the configured figure_family.

config

A tlf_config(); NULL resolves through tlf_get_config().

Value

A ggplot2 theme.

Examples

library(ggplot2)
p <- ggplot(mtcars, aes(wt, mpg)) + geom_point() + theme_tlf_submission()