theme_publication {easybio}R Documentation

Custom ggplot2 Theme for Academic Publications

Description

theme_publication creates a custom ggplot2 theme designed for academic publications, ensuring clarity, readability, and a professional appearance. It is based on theme_classic() and includes additional refinements to axis lines, text, and other plot elements to meet the standards of high-quality academic figures.

Usage

theme_publication(base_size = 12, base_family = "sans")

Arguments

base_size

numeric, the base font size. Default is 12.

base_family

character, the base font family. Default is "sans".

Value

A ggplot2 theme object that can be applied to ggplot2 plots.

ggplot2 theme.

Examples

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

[Package easybio version 1.1.1 Index]