Learn R Programming

glow (version 0.13.0)

theme_night: 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 = "")

Value

A ggplot2 theme.

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.

Examples

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

Run the code above in your browser using DataLab