Skip to contents

Theme that removes all non-geom elements (lines, text, etc.). Use it when only the geometric objects are desired. The base_family argument is ignored; it is kept for consistency with ggplot2::theme_grey().

Usage

theme_solid(base_size = 12, base_family = "", fill = NA)

Arguments

base_size

base font size, given in pts.

base_family

base font family

fill

The background color of the plot.

Value

A ggplot2 theme object (class theme).

Examples

library("ggplot2")

ggplot(mtcars, aes(wt, mpg)) +
  geom_point() +
  theme_solid(fill = "white")


ggplot(mtcars, aes(wt, mpg)) +
  geom_point(color = "white") +
  theme_solid(fill = "black")