Skip to contents

A publication-ready theme based on ggplot2::theme_minimal() with consistent defaults used across all cjdiag plots. Removes minor gridlines, controls major gridlines, and positions the legend at top.

Usage

theme_cjdiag(base_size = 12, base_family = "", grid_y = FALSE, grid_x = TRUE)

Arguments

base_size

Base font size (default 12)

base_family

Base font family (default "")

grid_y

Show horizontal gridlines (default FALSE)

grid_x

Show vertical gridlines (default TRUE)

Value

A ggplot2::theme() object

Examples

library(ggplot2)
ggplot(mtcars, aes(wt, mpg)) + geom_point() + theme_cjdiag()