theme_consultancy: Apply the standard Consultancy Team graphing styles to your...

View source: R/theme_consultancy.R

theme_consultancyR Documentation

Apply the standard Consultancy Team graphing styles to your graph

Description

theme_consultancy sets the following:

  • Plot background is white; this includes the background for the legend and any facets and their labels.

  • Axis ticks, lines, text, and titles are black. Same with text in facets.

  • If it's a concentration-time plot or an enzyme-abundance plot that does not have any facets, then there will be a line on the x axis and a line on the y axis but no overall border around the graph.

  • If the graph is facetted, the labels for the facets are not enclosed with a border.

  • Axis titles and, when applicable, the plot title are bold face. Note that expressions cannot be bold, so sometimes this means that one axis will be bold and the other will not.

  • Font sizes and margins are the same as in the ggplot2 theme "theme_bw"

Usage

theme_consultancy(border = FALSE)

Value

a ggplot2 theme

Examples

# Some example data to work with
MyData <- data.frame(X = rnorm(10), Y = runif(10))

# Without applying this theme to a standard ggplot2 graph
ggplot(MyData, aes(x = X, y = Y)) + geom_point()

# With application of this theme
ggplot(MyData, aes(x = X, y = Y)) + geom_point() +
       theme_consultancy()


shirewoman2/Consultancy documentation built on Feb. 18, 2025, 10 p.m.