theme_night | R Documentation |
A dark ggplot2 theme with a default black background intended to be used with the glow package.
theme_night(bgcolor = "black", base_size = 14, base_family = "")
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. |
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.
A ggplot2 theme.
ggplot(mtcars, aes(x = mpg, y = wt)) +
geom_point(color = "white") +
theme_night(bgcolor = "black")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.