Learn R Programming

easybio (version 1.1.1)

theme_publication: 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")

Value

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

ggplot2 theme.

Arguments

base_size

numeric, the base font size. Default is 12.

base_family

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

Examples

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

Run the code above in your browser using DataLab