theme_bdc_grey: Clean theme with grey box and axis ticks

Description Usage Arguments Value See Also Examples

Description

theme_bdc_grey is a ggplot2 theme that produces a plot in a simple grey panel on a white background. Facet labels are displayed as black text on a grey background. Grid lines can be enabled using the grid.x and grid.y parameters. Tick marks can be disabled using the ticks.x and ticks.y parameters.

Usage

1
2
3
4
theme_bdc_grey(base_size = 12, base_family = "", base_grey = "grey70",
  grid.x = FALSE, grid.y = FALSE, gridmin.x = grid.x,
  gridmin.y = grid.y, ticks.x = TRUE, ticks.y = TRUE,
  pmargin = base_size/2)

Arguments

base_size

The base size for all text (default: 12)

base_family

The base font family for all text

base_grey

The base color to use for rects, lines, etc (default: "grey70")

grid.x

Show grid lines along the X axis (default: FALSE)

grid.y

Show grid lines along the Y axis (default: FALSE)

gridmin.x

Show minor grid lines along the X axis (default: FALSE)

gridmin.y

Show minor grid lines along the Y axis (default: FALSE)

ticks.x

Show tick marks along the X axis (default: TRUE)

ticks.y

Show tick marks along th Y axis (default: TRUE)

pmargin

Margin around the plot (default: 1/2 line)

Value

A list of ggplot theme parameters

See Also

theme

Examples

1
2
3
4
library(ggplot2)

p <- ggplot(mtcars, aes(x = hp, y = mpg)) + geom_point() + theme_bdc_grey()
p

briandconnelly/ggplot2bdc documentation built on May 13, 2019, 5:13 a.m.