theme_mnmlab: McCall Lab Theme

Description Usage Arguments See Also Examples

View source: R/theme_mnmlab.R

Description

A theme for [ggplot2] with color blind friendly palettes for use members of the McCall Lab.

Usage

1
2
3
4
5
6
7
theme_mnmlab(
  text_size = 11,
  title_size = 14,
  text_color = "black",
  panel_grid_linetype = "18",
  base_theme = ggplot2::theme_linedraw()
)

Arguments

text_size

Font size for axis text. Legend text will scale by 0.8. Defaults to 17pt.

title_size

Font size for title text. Subtitle will scale by 0.9 and axis title will scale by 0.8. Defaults to 21pt.

text_color

Color for all text in plot. Defaults to black.

panel_grid_linetype

Line type for grid lines in plot. Defaults to 18, a dotted line with 1px on followed by 8px off.

base_theme

Underlying theme to build from. Defaults to linedraw, displaying a margin outline for the plot and gridlines.

See Also

[ggplot2::theme]

Examples

1
2
3
4
5
6
7
library(ggplot2)
library(palmerpenguins)


ggplot(penguins, aes(x = bill_length_mm, y = bill_depth_mm, color = species)) +
    scale_color_mnmlab(palette = "martink8") +
    theme_mnmlab()

zachbrehm/ggmnmlab documentation built on Dec. 23, 2021, 9:11 p.m.