theme_nocturnal: A ggplot2 theme that's dark as the night, and easy on the...

Description Usage Details Examples

View source: R/theme_nocturnal.R

Description

This plot theme was inspired by a need to simultaneously plot data and maintain a reasonable level of dark-adapted (scotopic) visual ability while doing fieldwork at night. theme_nocturnal() can be used in the same way as any of the native ggplot2 themes.

Usage

1

Details

To make adjustments to your plot's theme while using this function, using ggplot2's theme in a line proceeding theme_nocturnal().

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#Creating a plot with theme_nocturnal

DarkPlot <- ggplot(cars, aes(speed, dist)) +
  geom_point(color = "grey80") + #Note the specification of a light color for the points
  theme_nocturnal()

#Changing the axis text size of a theme_nocturnal plot

DarkPlot2 <- DarkPlot +
  theme(axis.text = element_text(size = 4))

huntercole25/EcoCountHelper documentation built on July 21, 2020, 8:56 p.m.