pub.theme: Define a publication-style plot theme

View source: R/plotting.R

pub.themeR Documentation

Define a publication-style plot theme

Description

Define a publication-style plot theme

Usage

pub.theme(size = 12)

Arguments

size

numeric, base font size for adapted ggplot2 theme

Details

This theme modifies the theme_classic theme in ggplot2.

Value

a ggplot theme based on theme_classic

Examples

library(ggplot2)
x <- sample(10)
y <- x + runif(10) - 0.5
df <- data.frame(x = x, y = y)
fig <- ggplot(df, aes(x = x, y = y)) +
    geom_point() +
    pub.theme()

single-cell-genetics/cardelino documentation built on Nov. 22, 2022, 4:05 p.m.