theme_igray: Inverse gray theme

Description Usage Arguments Details See Also Examples

View source: R/igray.R

Description

Theme with white panel and gray background.

Usage

1
theme_igray(base_size = 12, base_family = "")

Arguments

base_size

base font size, given in pts.

base_family

base font family

Details

This theme inverts the colors in the theme_gray(), a white panel and a light gray area around it. This keeps a white background for the color scales like theme_bw(). But by using a gray background, the plot is closer to the typographical color of the document, which is the motivation for using a gray panel in theme_gray(). This is similar to the style of plots in Stata and Tableau.

See Also

theme_gray(), theme_bw()

Other themes: theme_base(), theme_clean(), theme_foundation(), theme_par(), theme_solid()

Examples

1
2
3
4
5
6
library("ggplot2")

p <- ggplot(mtcars) +
    geom_point(aes(x = wt, y = mpg, colour = factor(gear))) +
    facet_wrap(~am)
p + theme_igray()

Example output



ggthemes documentation built on Jan. 20, 2021, 5:05 p.m.