theme_night: theme_night

theme_nightR Documentation

theme_night

Description

A dark ggplot2 theme with a default black background intended to be used with the glow package.

Usage

theme_night(bgcolor = "black", base_size = 14, base_family = "")

Arguments

bgcolor

Background color, default black. Generally you want to match the background with the lowest color value on a color scale.

base_size

Base default font size.

base_family

Base font family.

Details

The theme is heavily modified from the minimal ggplot theme. It is intended to be use with dark background colors and should not be used with white or light backgrounds.

Value

A ggplot2 theme.

Examples

ggplot(mtcars, aes(x = mpg, y = wt)) + 
  geom_point(color = "white") +
  theme_night(bgcolor = "black")

glow documentation built on April 6, 2023, 1:08 a.m.

Related to theme_night in glow...