theme_science: Set theme for ggplot2

View source: R/ggplot_theme.R

theme_scienceR Documentation

Set theme for ggplot2

Description

The theme set supports 10 colors in the colorblind friendly, yet beautiful pastille colors, and afterwards it backs out to 64 colors from resurrect palette. Theme is based on 'ggthemes::theme_pander()'.

Usage

theme_science(
  base_size = 16,
  base_family = "sans",
  nomargin = FALSE,
  fc = "black",
  gM = TRUE,
  gm = TRUE,
  gc = "grey",
  gl = "dashed",
  boxes = TRUE,
  bc = "white",
  pc = "transparent",
  lp = "top",
  axis = 1
)

Arguments

base_size

Font size

base_family

Font family

nomargin

If true will remove all margins.

fc

text colour, default is black

gM

grid Major

gm

grid minor

gc

grid color

gl

grid linetype

boxes

whether to keep boxes around the plot

bc

background color, default white

pc

panel colour background, default transparent

lp

legend position, default is top

axis

0, 1, 2, 3 - default is 1

Value

a ggplot2 theme

Author(s)

See ggtheme package


JokingHero/rxtras documentation built on April 1, 2024, 12:42 p.m.