theme_sleekX: Minimalist ggplot theme

View source: R/sleekTheme.R

theme_sleekXR Documentation

Minimalist ggplot theme

Description

This function is a copy of S. Anderson's ggsidekick which is not supported in the newest R version. Adds an argument for top, bottom, middle for multipanel functionality.

Usage

theme_sleekX(
  base_size = 11,
  base_family = "",
  position = "standard",
  axisSize = 10,
  legendSize = 1,
  facetSize = 1.1
)

Arguments

base_size

Defaults to 11 (don't change).

base_family

Default font type (don't change).

position

A character vector that can take the values standard (default), bottom, middle, top, or topWithX. Major differences between them are the presence of x-axis and facet labels.

axisSize

A numeric representing font size for the axis labels; defaults to 10.

legendSize

A numeric scalar for the size of the legend; defaults to 1.

facetSize

A numeric scalar for the relative size of facet labels.

Value

Returns a minimalist ggplot (i.e. no grid lines, more white and less grey).


CamFreshwater/samSim documentation built on Sept. 25, 2023, 10:22 a.m.