custom_themes: Custom themes

custom_themesR Documentation

Custom themes

Description

These are custom ggplot2 themes which control all non-data display. They may further tweak components of these themes using ggplot2::theme().

Usage

theme_miplicorn(
  base_size = 10,
  base_family = "",
  base_line_size = base_size/22,
  base_rect_size = base_size/22
)

theme_rainbow(
  base_size = 12,
  base_family = "",
  base_line_size = base_size/22,
  base_rect_size = base_size/22
)

Arguments

base_size

Base font size, given in pts.

base_family

Base font family.

base_line_size

Base size for line elements.

base_rect_size

Base size for rect elements.

Value

A ggplot2 theme.

Examples

data <- tibble::tibble(
  gene = c("atp6", "k13", "dhps"),
  coverage = c(10, 100, 50)
)

p <- ggplot2::ggplot(data, ggplot2::aes(x = gene, y = coverage, fill = factor(gene))) +
  ggplot2::geom_col()

p + theme_miplicorn()
p + theme_rainbow()

bailey-lab/miplicorn documentation built on March 19, 2023, 7:40 p.m.