theme_g: Nice theme for ggplot

Description Usage Arguments

View source: R/theme_g.r

Description

Based off of theme_bw, this frames the plot in dark blue, uses filled in rectangles with white text for facet labels, eliminates minor grid lines, and has a different default font. There are also some other options such as gridlines and angles for x-axis labels.

Usage

1
2
theme_g(font = c("Eras Medium ITC"), slant = FALSE, gridlines = TRUE,
  expand.margin = FALSE, theme_color = "#3B6E8F", ...)

Arguments

font

to use, defaults to "Eras Medium ITC".

slant

boolean for whether x-axis labels should be slanted. (FALSE)

gridlines

boolean for whether there should be any gridlines (TRUE)

expand.margin

boolean for whether the right margin needs padding. Useful if slant is TRUE and the labels on the right side are lengthy.

theme_color

Color for plot margin lines and facet strip backgrounds. Defaults to a nice dark blue.

...

additional arguments passed to theme_bw


gregorp/gregor documentation built on May 17, 2019, 8:36 a.m.